diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-06-11 22:37:46 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-06-11 22:37:46 +0000 |
commit | 0abe7431c6d7a022e7f24a4f145c702900f56174 (patch) | |
tree | 86af2971d8eb0bb48b9622abc0db40f8186b881a /src/interfaces/python/setup.py | |
parent | 240dc5cddc8c5fd13fbf8196034436183ed61a2f (diff) | |
download | postgresql-0abe7431c6d7a022e7f24a4f145c702900f56174.tar.gz postgresql-0abe7431c6d7a022e7f24a4f145c702900f56174.zip |
This patch extracts page buffer pooling and the simple
least-recently-used strategy from clog.c into slru.c. It doesn't
change any visible behaviour and passes all regression tests plus a
TruncateCLOG test done manually.
Apart from refactoring I made a little change to SlruRecentlyUsed,
formerly ClogRecentlyUsed: It now skips incrementing lru_counts, if
slotno is already the LRU slot, thus saving a few CPU cycles. To make
this work, lru_counts are initialised to 1 in SimpleLruInit.
SimpleLru will be used by pg_subtrans (part of the nested transactions
project), so the main purpose of this patch is to avoid future code
duplication.
Manfred Koizar
Diffstat (limited to 'src/interfaces/python/setup.py')
0 files changed, 0 insertions, 0 deletions