mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +03:00
Scan the buffer pool just once, not once per fork, during relation drop.
This provides a speedup of about 4X when NBuffers is large enough. There is also a useful reduction in sinval traffic, since we only do CacheInvalidateSmgr() once not once per fork. Simon Riggs, reviewed and somewhat revised by Tom Lane
This commit is contained in:
@@ -210,6 +210,7 @@ extern BufferDesc *LocalBufferAlloc(SMgrRelation smgr, ForkNumber forkNum,
|
||||
extern void MarkLocalBufferDirty(Buffer buffer);
|
||||
extern void DropRelFileNodeLocalBuffers(RelFileNode rnode, ForkNumber forkNum,
|
||||
BlockNumber firstDelBlock);
|
||||
extern void DropRelFileNodeAllLocalBuffers(RelFileNode rnode);
|
||||
extern void AtEOXact_LocalBuffers(bool isCommit);
|
||||
|
||||
#endif /* BUFMGR_INTERNALS_H */
|
||||
|
||||
Reference in New Issue
Block a user