mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Extend relations multiple blocks at a time to improve scalability.
Contention on the relation extension lock can become quite fierce when multiple processes are inserting data into the same relation at the same time at a high rate. Experimentation shows the extending the relation multiple blocks at a time improves scalability. Dilip Kumar, reviewed by Petr Jelinek, Amit Kapila, and me.
This commit is contained in:
@@ -32,5 +32,9 @@ extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
|
||||
|
||||
extern void FreeSpaceMapTruncateRel(Relation rel, BlockNumber nblocks);
|
||||
extern void FreeSpaceMapVacuum(Relation rel);
|
||||
extern void UpdateFreeSpaceMap(Relation rel,
|
||||
BlockNumber firtsBlkNum,
|
||||
BlockNumber lastBlkNum,
|
||||
Size freespace);
|
||||
|
||||
#endif /* FREESPACE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user