pgsql-server/src backend/access/heap/heapam.c ...

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/access/heap/heapam.c ...
Date: 2002-08-06 02:36:35
Message-ID: 20020806023635.632D3475917@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)postgresql(dot)org 02/08/05 22:36:35

Modified files:
src/backend/access/heap: heapam.c hio.c tuptoaster.c
src/backend/access/nbtree: nbtinsert.c nbtpage.c
src/backend/access/transam: xact.c xlog.c
src/backend/catalog: heap.c indexing.c
src/backend/commands: sequence.c vacuum.c vacuumlazy.c
src/backend/executor: execUtils.c
src/backend/storage/buffer: buf_init.c bufmgr.c localbuf.c
src/backend/storage/file: fd.c
src/backend/storage/smgr: md.c mm.c smgr.c
src/backend/utils/cache: relcache.c
src/include/access: xlog.h
src/include/storage: buf_internals.h bufmgr.h fd.h smgr.h
src/include/utils: rel.h relcache.h

Log message:
Restructure local-buffer handling per recent pghackers discussion.
The local buffer manager is no longer used for newly-created relations
(unless they are TEMP); a new non-TEMP relation goes through the shared
bufmgr and thus will participate normally in checkpoints. But TEMP relations
use the local buffer manager throughout their lifespan. Also, operations
in TEMP relations are not logged in WAL, thus improving performance.
Since it's no longer necessary to fsync relations as they move out of the
local buffers into shared buffers, quite a lot of smgr.c/md.c/fd.c code
is no longer needed and has been removed: there's no concept of a dirty
relation anymore in md.c/fd.c, and we never fsync anything but WAL.
Still TODO: improve local buffer management algorithms so that it would
be reasonable to increase NLocBuffer.

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2002-08-06 05:24:05 pgsql-server/src/backend/tcop postgres.c
Previous Message Peter Eisentraut - PostgreSQL 2002-08-05 19:44:58 pgsql-server/doc/src/sgml ddl.sgml dml.sgml en ...