@@ -470,8 +470,8 @@ typedef struct TableAmRoutine
470470 const RelFileNode * newrnode );
471471
472472 /* See table_relation_copy_for_cluster() */
473- void (* relation_copy_for_cluster ) (Relation NewHeap ,
474- Relation OldHeap ,
473+ void (* relation_copy_for_cluster ) (Relation NewTable ,
474+ Relation OldTable ,
475475 Relation OldIndex ,
476476 bool use_sort ,
477477 TransactionId OldestXmin ,
@@ -536,9 +536,9 @@ typedef struct TableAmRoutine
536536 TupleTableSlot * slot );
537537
538538 /* see table_index_build_range_scan for reference about parameters */
539- double (* index_build_range_scan ) (Relation heap_rel ,
539+ double (* index_build_range_scan ) (Relation table_rel ,
540540 Relation index_rel ,
541- struct IndexInfo * index_nfo ,
541+ struct IndexInfo * index_info ,
542542 bool allow_sync ,
543543 bool anyvisible ,
544544 bool progress ,
@@ -549,7 +549,7 @@ typedef struct TableAmRoutine
549549 TableScanDesc scan );
550550
551551 /* see table_index_validate_scan for reference about parameters */
552- void (* index_validate_scan ) (Relation heap_rel ,
552+ void (* index_validate_scan ) (Relation table_rel ,
553553 Relation index_rel ,
554554 struct IndexInfo * index_info ,
555555 Snapshot snapshot ,
@@ -1377,7 +1377,7 @@ table_relation_copy_data(Relation rel, const RelFileNode *newrnode)
13771377}
13781378
13791379/*
1380- * Copy data from `OldHeap ` into `NewHeap `, as part of a CLUSTER or VACUUM
1380+ * Copy data from `OldTable ` into `NewTable `, as part of a CLUSTER or VACUUM
13811381 * FULL.
13821382 *
13831383 * Additional Input parameters:
@@ -1398,7 +1398,7 @@ table_relation_copy_data(Relation rel, const RelFileNode *newrnode)
13981398 * - *tups_recently_dead - stats, for logging, if appropriate for AM
13991399 */
14001400static inline void
1401- table_relation_copy_for_cluster (Relation OldHeap , Relation NewHeap ,
1401+ table_relation_copy_for_cluster (Relation OldTable , Relation NewTable ,
14021402 Relation OldIndex ,
14031403 bool use_sort ,
14041404 TransactionId OldestXmin ,
@@ -1408,11 +1408,11 @@ table_relation_copy_for_cluster(Relation OldHeap, Relation NewHeap,
14081408 double * tups_vacuumed ,
14091409 double * tups_recently_dead )
14101410{
1411- OldHeap -> rd_tableam -> relation_copy_for_cluster (OldHeap , NewHeap , OldIndex ,
1412- use_sort , OldestXmin ,
1413- xid_cutoff , multi_cutoff ,
1414- num_tuples , tups_vacuumed ,
1415- tups_recently_dead );
1411+ OldTable -> rd_tableam -> relation_copy_for_cluster (OldTable , NewTable , OldIndex ,
1412+ use_sort , OldestXmin ,
1413+ xid_cutoff , multi_cutoff ,
1414+ num_tuples , tups_vacuumed ,
1415+ tups_recently_dead );
14161416}
14171417
14181418/*
@@ -1473,7 +1473,7 @@ table_scan_analyze_next_tuple(TableScanDesc scan, TransactionId OldestXmin,
14731473 * table_index_build_scan - scan the table to find tuples to be indexed
14741474 *
14751475 * This is called back from an access-method-specific index build procedure
1476- * after the AM has done whatever setup it needs. The parent heap relation
1476+ * after the AM has done whatever setup it needs. The parent table relation
14771477 * is scanned to find tuples that should be entered into the index. Each
14781478 * such tuple is passed to the AM's callback routine, which does the right
14791479 * things to add it to the new index. After we return, the AM's index
@@ -1497,26 +1497,26 @@ table_scan_analyze_next_tuple(TableScanDesc scan, TransactionId OldestXmin,
14971497 * for other AMs later.
14981498 */
14991499static inline double
1500- table_index_build_scan (Relation heap_rel ,
1500+ table_index_build_scan (Relation table_rel ,
15011501 Relation index_rel ,
1502- struct IndexInfo * index_nfo ,
1502+ struct IndexInfo * index_info ,
15031503 bool allow_sync ,
15041504 bool progress ,
15051505 IndexBuildCallback callback ,
15061506 void * callback_state ,
15071507 TableScanDesc scan )
15081508{
1509- return heap_rel -> rd_tableam -> index_build_range_scan (heap_rel ,
1510- index_rel ,
1511- index_nfo ,
1512- allow_sync ,
1513- false,
1514- progress ,
1515- 0 ,
1516- InvalidBlockNumber ,
1517- callback ,
1518- callback_state ,
1519- scan );
1509+ return table_rel -> rd_tableam -> index_build_range_scan (table_rel ,
1510+ index_rel ,
1511+ index_info ,
1512+ allow_sync ,
1513+ false,
1514+ progress ,
1515+ 0 ,
1516+ InvalidBlockNumber ,
1517+ callback ,
1518+ callback_state ,
1519+ scan );
15201520}
15211521
15221522/*
@@ -1530,9 +1530,9 @@ table_index_build_scan(Relation heap_rel,
15301530 * transactions that are still in progress.
15311531 */
15321532static inline double
1533- table_index_build_range_scan (Relation heap_rel ,
1533+ table_index_build_range_scan (Relation table_rel ,
15341534 Relation index_rel ,
1535- struct IndexInfo * index_nfo ,
1535+ struct IndexInfo * index_info ,
15361536 bool allow_sync ,
15371537 bool anyvisible ,
15381538 bool progress ,
@@ -1542,17 +1542,17 @@ table_index_build_range_scan(Relation heap_rel,
15421542 void * callback_state ,
15431543 TableScanDesc scan )
15441544{
1545- return heap_rel -> rd_tableam -> index_build_range_scan (heap_rel ,
1546- index_rel ,
1547- index_nfo ,
1548- allow_sync ,
1549- anyvisible ,
1550- progress ,
1551- start_blockno ,
1552- numblocks ,
1553- callback ,
1554- callback_state ,
1555- scan );
1545+ return table_rel -> rd_tableam -> index_build_range_scan (table_rel ,
1546+ index_rel ,
1547+ index_info ,
1548+ allow_sync ,
1549+ anyvisible ,
1550+ progress ,
1551+ start_blockno ,
1552+ numblocks ,
1553+ callback ,
1554+ callback_state ,
1555+ scan );
15561556}
15571557
15581558/*
@@ -1561,17 +1561,17 @@ table_index_build_range_scan(Relation heap_rel,
15611561 * See validate_index() for an explanation.
15621562 */
15631563static inline void
1564- table_index_validate_scan (Relation heap_rel ,
1564+ table_index_validate_scan (Relation table_rel ,
15651565 Relation index_rel ,
15661566 struct IndexInfo * index_info ,
15671567 Snapshot snapshot ,
15681568 struct ValidateIndexState * state )
15691569{
1570- heap_rel -> rd_tableam -> index_validate_scan (heap_rel ,
1571- index_rel ,
1572- index_info ,
1573- snapshot ,
1574- state );
1570+ table_rel -> rd_tableam -> index_validate_scan (table_rel ,
1571+ index_rel ,
1572+ index_info ,
1573+ snapshot ,
1574+ state );
15751575}
15761576
15771577
0 commit comments