Refactor XLogOpenRelation() and XLogReadBuffer() in preparation for relation
commit8d06f0d1d98af500dae6898422f6e3524cfc416c
authorheikki <heikki>
Thu, 12 Jun 2008 09:12:31 +0000 (12 09:12 +0000)
committerheikki <heikki>
Thu, 12 Jun 2008 09:12:31 +0000 (12 09:12 +0000)
treeef63094f956bc88d0357b552bf1e2225ac0b61c1
parent4bef132628b8161c65496ac127102333f59a2642
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