@@ -81,7 +81,8 @@ static void ComputeIndexAttrs(IndexInfo *indexInfo,
81
81
const List * attList ,
82
82
const List * exclusionOpNames ,
83
83
Oid relId ,
84
- const char * accessMethodName , Oid accessMethodId ,
84
+ const char * accessMethodName ,
85
+ Oid accessMethodId ,
85
86
bool amcanorder ,
86
87
bool isconstraint ,
87
88
Oid ddl_userid ,
@@ -274,10 +275,8 @@ CheckIndexCompatible(Oid oldId,
274
275
d = SysCacheGetAttrNotNull (INDEXRELID , tuple , Anum_pg_index_indclass );
275
276
old_indclass = (oidvector * ) DatumGetPointer (d );
276
277
277
- ret = (memcmp (old_indclass -> values , opclassIds ,
278
- old_natts * sizeof (Oid )) == 0 &&
279
- memcmp (old_indcollation -> values , collationIds ,
280
- old_natts * sizeof (Oid )) == 0 );
278
+ ret = (memcmp (old_indclass -> values , opclassIds , old_natts * sizeof (Oid )) == 0 &&
279
+ memcmp (old_indcollation -> values , collationIds , old_natts * sizeof (Oid )) == 0 );
281
280
282
281
ReleaseSysCache (tuple );
283
282
@@ -603,8 +602,7 @@ DefineIndex(Oid tableId,
603
602
*/
604
603
if (!OidIsValid (parentIndexId ))
605
604
{
606
- pgstat_progress_start_command (PROGRESS_COMMAND_CREATE_INDEX ,
607
- tableId );
605
+ pgstat_progress_start_command (PROGRESS_COMMAND_CREATE_INDEX , tableId );
608
606
pgstat_progress_update_param (PROGRESS_CREATEIDX_COMMAND ,
609
607
concurrent ?
610
608
PROGRESS_CREATEIDX_COMMAND_CREATE_CONCURRENTLY :
@@ -1262,8 +1260,7 @@ DefineIndex(Oid tableId,
1262
1260
*/
1263
1261
if (total_parts < 0 )
1264
1262
{
1265
- List * children = find_all_inheritors (tableId ,
1266
- NoLock , NULL );
1263
+ List * children = find_all_inheritors (tableId , NoLock , NULL );
1267
1264
1268
1265
total_parts = list_length (children ) - 1 ;
1269
1266
list_free (children );
@@ -3789,8 +3786,7 @@ ReindexRelationConcurrently(Oid relationOid, const ReindexParams *params)
3789
3786
if (indexRel -> rd_rel -> relpersistence == RELPERSISTENCE_TEMP )
3790
3787
elog (ERROR , "cannot reindex a temporary table concurrently" );
3791
3788
3792
- pgstat_progress_start_command (PROGRESS_COMMAND_CREATE_INDEX ,
3793
- idx -> tableId );
3789
+ pgstat_progress_start_command (PROGRESS_COMMAND_CREATE_INDEX , idx -> tableId );
3794
3790
3795
3791
progress_vals [0 ] = PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY ;
3796
3792
progress_vals [1 ] = 0 ; /* initializing */
@@ -4015,8 +4011,7 @@ ReindexRelationConcurrently(Oid relationOid, const ReindexParams *params)
4015
4011
* Update progress for the index to build, with the correct parent
4016
4012
* table involved.
4017
4013
*/
4018
- pgstat_progress_start_command (PROGRESS_COMMAND_CREATE_INDEX ,
4019
- newidx -> tableId );
4014
+ pgstat_progress_start_command (PROGRESS_COMMAND_CREATE_INDEX , newidx -> tableId );
4020
4015
progress_vals [0 ] = PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY ;
4021
4016
progress_vals [1 ] = PROGRESS_CREATEIDX_PHASE_VALIDATE_IDXSCAN ;
4022
4017
progress_vals [2 ] = newidx -> indexId ;
0 commit comments