Skip to content

Commit 6825174

Browse files
committed
Add new callback 'scan_flags' for table access method
The table access method supports different features due to the different implementation, this callback is used to indicate what the AM can do, what features the AM can support.
1 parent 84a749a commit 6825174

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/include/access/tableam.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,13 @@ typedef struct TableAmRoutine
390390
ScanDirection direction,
391391
TupleTableSlot *slot);
392392

393+
/*
394+
* This callback is used to indicate what the AM can do, what features the
395+
* AM can support, return the flags represented the supported features of
396+
* scan.
397+
*/
398+
int (*scan_flags) (Relation rel);
399+
393400
/* ------------------------------------------------------------------------
394401
* Parallel table scan related functions.
395402
* ------------------------------------------------------------------------

0 commit comments

Comments
 (0)