-
- Downloads
Arrange for read-only accesses to SLRU page buffers to take only a shared
lock, not exclusive, if the desired page is already in memory. This can be demonstrated to be a significant win on the pg_subtrans cache when there is a large window of open transactions. It should be useful for pg_clog as well. I didn't try to make GetMultiXactIdMembers() use the code, as that would have taken some restructuring, and what with the local cache for multixact contents it probably wouldn't really make a difference. Per my recent proposal.
Showing
- src/backend/access/transam/clog.c 3 additions, 3 deletionssrc/backend/access/transam/clog.c
- src/backend/access/transam/multixact.c 3 additions, 3 deletionssrc/backend/access/transam/multixact.c
- src/backend/access/transam/slru.c 120 additions, 14 deletionssrc/backend/access/transam/slru.c
- src/backend/access/transam/subtrans.c 3 additions, 3 deletionssrc/backend/access/transam/subtrans.c
- src/include/access/slru.h 16 additions, 5 deletionssrc/include/access/slru.h
Loading
Please register or sign in to comment