Replace implementation of pg_log as a relation accessed through the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2589735da08c4e597accb6eab5ae65b6339ee630
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-08-25T18:52:43Z
Releases: 7.2.1
Replace implementation of pg_log as a relation accessed through the
buffer manager with 'pg_clog', a specialized access method modeled
on pg_xlog.  This simplifies startup (don't need to play games to
open pg_log; among other things, OverrideTransactionSystem goes away),
should improve performance a little, and opens the door to recycling
commit log space by removing no-longer-needed segments of the commit
log.  Actual recycling is not there yet, but I felt I should commit
this part separately since it'd still be useful if we chose not to
do transaction ID wraparound.

Files

PathChange+/−
doc/src/sgml/backup.sgml modified +4 −4
doc/src/sgml/wal.sgml modified +4 −4
src/backend/access/transam/clog.c added +987 −0
src/backend/access/transam/Makefile modified +2 −2
src/backend/access/transam/rmgr.c modified +11 −1
src/backend/access/transam/transam.c modified +42 −278
src/backend/access/transam/transsup.c deleted +0 −466
src/backend/access/transam/varsup.c modified +29 −17
src/backend/access/transam/xact.c modified +29 −131
src/backend/access/transam/xlog.c modified +15 −5
src/backend/access/transam/xlogutils.c modified +4 −34
src/backend/catalog/heap.c modified +1 −6
src/backend/catalog/Makefile modified +2 −2
src/backend/parser/gram.y modified +2 −7
src/backend/storage/buffer/README modified +2 −2
src/backend/storage/ipc/ipci.c modified +5 −2
src/backend/storage/ipc/sinval.c modified +2 −2
src/backend/storage/lmgr/lmgr.c modified +2 −2
src/backend/utils/cache/relcache.c modified +1 −8
src/backend/utils/init/globals.c modified +1 −2
src/backend/utils/init/postinit.c modified +6 −17
src/backend/utils/misc/database.c modified +2 −2
src/backend/utils/time/tqual.c modified +5 −5
src/bin/initdb/initdb.sh modified +7 −1
src/bin/pg_dump/pg_upgrade modified +4 −4
src/include/access/clog.h added +47 −0
src/include/access/rmgr.h modified +2 −1
src/include/access/transam.h modified +10 −39
src/include/access/xact.h modified +1 −4
src/include/access/xlogdefs.h modified +2 −2
src/include/access/xlog.h modified +2 −1
src/include/access/xlogutils.h modified +3 −3
src/include/catalog/catname.h modified +1 −2
src/include/catalog/catversion.h modified +2 −2
src/include/catalog/pg_attribute.h modified +6 −18
src/include/catalog/pg_class.h modified +1 −4
src/include/catalog/pg_log.h deleted +0 −41
src/include/catalog/pg_type.h modified +1 −2
src/include/storage/bufpage.h modified +1 −5