Split the buffer mapping table into multiple separately lockable
Tom Lane <tgl@sss.pgh.pa.us>
Split the buffer mapping table into multiple separately lockable partitions, as per discussion. Passes functionality checks, but I don't have any performance data yet.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_buffercache/pg_buffercache_pages.c | modified | +13 −10 |
| src/backend/storage/buffer/bufmgr.c | modified | +92 −25 |
| src/backend/storage/buffer/buf_table.c | modified | +43 −13 |
| src/backend/storage/buffer/README | modified | +9 −1 |
| src/backend/storage/lmgr/lwlock.c | modified | +4 −8 |
| src/include/storage/buf_internals.h | modified | +16 −4 |
| src/include/storage/lock.h | modified | +3 −11 |
| src/include/storage/lwlock.h | modified | +18 −3 |