]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move log_newpage and log_newpage_buffer to xlog.c.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 31 Jul 2014 13:48:43 +0000 (16:48 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 31 Jul 2014 13:48:55 +0000 (16:48 +0300)
commit54685338e37889eebd473804c3feb006dd83a882
tree13e10f54e76fb5d31332367a66a617eeebd0a2d8
parentf51ead09df19f0a074c07657b7de8dba0f3050d6
Move log_newpage and log_newpage_buffer to xlog.c.

log_newpage is used by many indexams, in addition to heap, but for
historical reasons it's always been part of the heapam rmgr. Starting with
9.3, we have another WAL record type for logging an image of a page,
XLOG_FPI. Simplify things by moving log_newpage and log_newpage_buffer to
xlog.c, and switch to using the XLOG_FPI record type.

Bump the WAL version number because the code to replay the old HEAP_NEWPAGE
records is removed.
15 files changed:
src/backend/access/gin/gindatapage.c
src/backend/access/gin/gininsert.c
src/backend/access/gin/ginxlog.c
src/backend/access/gist/gist.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/rmgrdesc/heapdesc.c
src/backend/access/spgist/spginsert.c
src/backend/access/transam/xlog.c
src/backend/commands/tablecmds.c
src/backend/replication/logical/decode.c
src/include/access/heapam_xlog.h
src/include/access/xlog.h
src/include/access/xlog_internal.h