@@ -470,8 +470,8 @@ typedef struct TableAmRoutine
470
470
const RelFileNode * newrnode );
471
471
472
472
/* 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 ,
475
475
Relation OldIndex ,
476
476
bool use_sort ,
477
477
TransactionId OldestXmin ,
@@ -536,9 +536,9 @@ typedef struct TableAmRoutine
536
536
TupleTableSlot * slot );
537
537
538
538
/* 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 ,
540
540
Relation index_rel ,
541
- struct IndexInfo * index_nfo ,
541
+ struct IndexInfo * index_info ,
542
542
bool allow_sync ,
543
543
bool anyvisible ,
544
544
bool progress ,
@@ -549,7 +549,7 @@ typedef struct TableAmRoutine
549
549
TableScanDesc scan );
550
550
551
551
/* 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 ,
553
553
Relation index_rel ,
554
554
struct IndexInfo * index_info ,
555
555
Snapshot snapshot ,
@@ -1377,7 +1377,7 @@ table_relation_copy_data(Relation rel, const RelFileNode *newrnode)
1377
1377
}
1378
1378
1379
1379
/*
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
1381
1381
* FULL.
1382
1382
*
1383
1383
* Additional Input parameters:
@@ -1398,7 +1398,7 @@ table_relation_copy_data(Relation rel, const RelFileNode *newrnode)
1398
1398
* - *tups_recently_dead - stats, for logging, if appropriate for AM
1399
1399
*/
1400
1400
static inline void
1401
- table_relation_copy_for_cluster (Relation OldHeap , Relation NewHeap ,
1401
+ table_relation_copy_for_cluster (Relation OldTable , Relation NewTable ,
1402
1402
Relation OldIndex ,
1403
1403
bool use_sort ,
1404
1404
TransactionId OldestXmin ,
@@ -1408,11 +1408,11 @@ table_relation_copy_for_cluster(Relation OldHeap, Relation NewHeap,
1408
1408
double * tups_vacuumed ,
1409
1409
double * tups_recently_dead )
1410
1410
{
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 );
1416
1416
}
1417
1417
1418
1418
/*
@@ -1473,7 +1473,7 @@ table_scan_analyze_next_tuple(TableScanDesc scan, TransactionId OldestXmin,
1473
1473
* table_index_build_scan - scan the table to find tuples to be indexed
1474
1474
*
1475
1475
* 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
1477
1477
* is scanned to find tuples that should be entered into the index. Each
1478
1478
* such tuple is passed to the AM's callback routine, which does the right
1479
1479
* 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,
1497
1497
* for other AMs later.
1498
1498
*/
1499
1499
static inline double
1500
- table_index_build_scan (Relation heap_rel ,
1500
+ table_index_build_scan (Relation table_rel ,
1501
1501
Relation index_rel ,
1502
- struct IndexInfo * index_nfo ,
1502
+ struct IndexInfo * index_info ,
1503
1503
bool allow_sync ,
1504
1504
bool progress ,
1505
1505
IndexBuildCallback callback ,
1506
1506
void * callback_state ,
1507
1507
TableScanDesc scan )
1508
1508
{
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 );
1520
1520
}
1521
1521
1522
1522
/*
@@ -1530,9 +1530,9 @@ table_index_build_scan(Relation heap_rel,
1530
1530
* transactions that are still in progress.
1531
1531
*/
1532
1532
static inline double
1533
- table_index_build_range_scan (Relation heap_rel ,
1533
+ table_index_build_range_scan (Relation table_rel ,
1534
1534
Relation index_rel ,
1535
- struct IndexInfo * index_nfo ,
1535
+ struct IndexInfo * index_info ,
1536
1536
bool allow_sync ,
1537
1537
bool anyvisible ,
1538
1538
bool progress ,
@@ -1542,17 +1542,17 @@ table_index_build_range_scan(Relation heap_rel,
1542
1542
void * callback_state ,
1543
1543
TableScanDesc scan )
1544
1544
{
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 );
1556
1556
}
1557
1557
1558
1558
/*
@@ -1561,17 +1561,17 @@ table_index_build_range_scan(Relation heap_rel,
1561
1561
* See validate_index() for an explanation.
1562
1562
*/
1563
1563
static inline void
1564
- table_index_validate_scan (Relation heap_rel ,
1564
+ table_index_validate_scan (Relation table_rel ,
1565
1565
Relation index_rel ,
1566
1566
struct IndexInfo * index_info ,
1567
1567
Snapshot snapshot ,
1568
1568
struct ValidateIndexState * state )
1569
1569
{
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 );
1575
1575
}
1576
1576
1577
1577
0 commit comments