Refactor XLogOpenRelation() and XLogReadBuffer() in preparation for relation
authorHeikki Linnakangas <heikki@enterprisedb.com>
Thu, 12 Jun 2008 09:12:31 +0000 (09:12 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Thu, 12 Jun 2008 09:12:31 +0000 (09:12 +0000)
commit89a6ea4a75e0ac3e456e96579d7ae21f65d2a256
tree92e9e7ac54b69245dcc0738791d9c1ada4421e39
parent393b76c1f9f2d772cc503284a87edf164e33f7de
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