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 253 of file syncscan.c.
References elog, LOG, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), RelationData::rd_node, RelationGetRelationName, and ss_search().
Referenced by initscan(), and table_block_parallelscan_startblock_init().
void ss_report_location | ( | Relation | rel, |
BlockNumber | location | ||
) |
Definition at line 288 of file syncscan.c.
References elog, LOG, LW_EXCLUSIVE, LWLockConditionalAcquire(), LWLockRelease(), RelationData::rd_node, RelationGetRelationName, ss_search(), and SYNC_SCAN_REPORT_INTERVAL.
Referenced by heapam_scan_sample_next_block(), heapgettup(), heapgettup_pagemode(), and table_block_parallelscan_nextpage().
void SyncScanShmemInit | ( | void | ) |
Definition at line 135 of file syncscan.c.
References Assert(), RelFileNode::dbNode, ss_scan_locations_t::head, i, InvalidBlockNumber, InvalidOid, 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::relfilenode, RelFileNode::relNode, scan_locations, ShmemInitStruct(), SizeOfScanLocations, RelFileNode::spcNode, SYNC_SCAN_NELEM, and ss_scan_locations_t::tail.
Referenced by CreateSharedMemoryAndSemaphores().
Size SyncScanShmemSize | ( | void | ) |
Definition at line 126 of file syncscan.c.
References SizeOfScanLocations, and SYNC_SCAN_NELEM.
Referenced by CalculateShmemSize().