]> granicus.if.org Git - postgresql/commit
Refactor XLogOpenRelation() and XLogReadBuffer() in preparation for relation
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 12 Jun 2008 09:12:31 +0000 (09:12 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 12 Jun 2008 09:12:31 +0000 (09:12 +0000)
commita213f1ee6c5a1bbe1f074ca201975e76ad2ed50c
treec5ac3531c006389123da3ba506e5b25eb09ecd02
parentc4f2a0458dc029d1214f013f1434f70f5194e56d
Refactor XLogOpenRelation() and XLogReadBuffer() in preparation for relation
forks. XLogOpenRelation() and the associated light-weight relation cache in
xlogutils.c is gone, and XLogReadBuffer() now takes a RelFileNode as argument,
instead of Relation.

For functions that still need a Relation struct during WAL replay, there's a
new function called CreateFakeRelcacheEntry() that returns a fake entry like
XLogOpenRelation() used to.
20 files changed:
src/backend/access/gin/ginxlog.c
src/backend/access/gist/gist.c
src/backend/access/gist/gistutil.c
src/backend/access/gist/gistvacuum.c
src/backend/access/gist/gistxlog.c
src/backend/access/heap/heapam.c
src/backend/access/heap/pruneheap.c
src/backend/access/nbtree/nbtxlog.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/commands/sequence.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c
src/backend/storage/smgr/smgr.c
src/backend/utils/init/flatfiles.c
src/include/access/gist_private.h
src/include/access/heapam.h
src/include/access/xlogutils.h
src/include/storage/buf_internals.h
src/include/storage/bufmgr.h