PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
void | ss_report_location (Relation rel, BlockNumber location) |
BlockNumber | ss_get_location (Relation rel, BlockNumber relnblocks) |
void | SyncScanShmemInit (void) |
Size | SyncScanShmemSize (void) |
BlockNumber ss_get_location | ( | Relation | rel, |
BlockNumber | relnblocks | ||
) |
Definition at line 254 of file syncscan.c.
References elog, LOG, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), RelationData::rd_locator, RelationGetRelationName, and ss_search().
Referenced by initscan(), and table_block_parallelscan_startblock_init().
void ss_report_location | ( | Relation | rel, |
BlockNumber | location | ||
) |
Definition at line 289 of file syncscan.c.
References elog, LOG, LW_EXCLUSIVE, LWLockConditionalAcquire(), LWLockRelease(), RelationData::rd_locator, RelationGetRelationName, ss_search(), and SYNC_SCAN_REPORT_INTERVAL.
Referenced by heapam_scan_sample_next_block(), heapgettup_advance_block(), and table_block_parallelscan_nextpage().
void SyncScanShmemInit | ( | void | ) |
Definition at line 135 of file syncscan.c.
References Assert, RelFileLocator::dbOid, ss_scan_locations_t::head, i, InvalidBlockNumber, InvalidOid, InvalidRelFileNumber, IsUnderPostmaster, ss_scan_locations_t::items, ss_scan_location_t::location, ss_lru_item_t::location, ss_lru_item_t::next, ss_lru_item_t::prev, ss_scan_location_t::relfilelocator, RelFileLocator::relNumber, scan_locations, ShmemInitStruct(), SizeOfScanLocations, RelFileLocator::spcOid, SYNC_SCAN_NELEM, and ss_scan_locations_t::tail.
Referenced by CreateOrAttachShmemStructs().
Size SyncScanShmemSize | ( | void | ) |
Definition at line 126 of file syncscan.c.
References SizeOfScanLocations, and SYNC_SCAN_NELEM.
Referenced by CalculateShmemSize().