pgsql-server/src backend/access/transam/Makefi ...

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/access/transam/Makefi ...
Date: 2003-06-11 22:37:46
Message-ID: 20030611223746.2258930DFEC@svr1.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)svr1(dot)postgresql(dot)org 03/06/11 19:37:46

Modified files:
src/backend/access/transam: Makefile clog.c
src/backend/storage/lmgr: lwlock.c
src/include/storage: lwlock.h
Added files:
src/backend/access/transam: slru.c
src/include/access: slru.h

Log message:
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

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2003-06-12 01:17:19 pgsql-server/src/interfaces/libpq fe-exec.c
Previous Message Bruce Momjian 2003-06-11 22:13:23 pgsql-server/ oc/TODO oc/src/sgml/runtime.sgml ...