Remove unnecessary declaration of heapam_methods
authorMichael Paquier <[email protected]>
Tue, 6 Aug 2024 07:27:38 +0000 (16:27 +0900)
committerMichael Paquier <[email protected]>
Tue, 6 Aug 2024 07:27:38 +0000 (16:27 +0900)
This overlaps with the declaration at the end of heapam_handler.c that
lists all the callback routines for the heap table AM.

Author: Japin Li
Discussion: https://postgr.es/m/ME0P300MB04459456D5C4E70D48116896B6B12@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM

src/backend/access/heap/heapam_handler.c

index 6f8b1b79298f3a364b95b76f93bd7d3814f362dd..e28047c201a75099b9849b34eb6076f3bf5b9875 100644 (file)
@@ -56,8 +56,6 @@ static bool SampleHeapTupleVisible(TableScanDesc scan, Buffer buffer,
 
 static BlockNumber heapam_scan_get_blocks_done(HeapScanDesc hscan);
 
-static const TableAmRoutine heapam_methods;
-
 
 /* ------------------------------------------------------------------------
  * Slot related callbacks for heap AM