MCPcopy Create free account
hub / github.com/apache/cloudberry / table_scan_getnextslot

Function table_scan_getnextslot

src/include/access/tableam.h:1235–1249  ·  view source on GitHub ↗

* Return next tuple from `scan`, store in slot. */

Source from the content-addressed store, hash-verified

1233 * Return next tuple from `scan`, store in slot.
1234 */
1235static inline bool
1236table_scan_getnextslot(TableScanDesc sscan, ScanDirection direction, TupleTableSlot *slot)
1237{
1238 slot->tts_tableOid = RelationGetRelid(sscan->rs_rd);
1239
1240 /*
1241 * We don't expect direct calls to table_scan_getnextslot with valid
1242 * CheckXidAlive for catalog or regular tables. See detailed comments in
1243 * xact.c where these variables are declared.
1244 */
1245 if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan))
1246 elog(ERROR, "unexpected table_scan_getnextslot call during logical decoding");
1247
1248 return sscan->rs_rd->rd_tableam->scan_getnextslot(sscan, direction, slot);
1249}
1250
1251/* ----------------------------------------------------------------------------
1252 * TID Range scanning related functions.

Callers 15

IndexBuildRangeScanMethod · 0.85
CPaxCopyAllTuplesFunction · 0.85
DefineQueryRewriteFunction · 0.85
CopyToFunction · 0.85
CopyToDirectoryTableFunction · 0.85
directory_tableFunction · 0.85
AlterDomainNotNullFunction · 0.85
validateDomainConstraintFunction · 0.85
ATRewriteTableFunction · 0.85
systable_getnextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected