Add Generic WAL interface
This interface is designed to give an access to WAL for extensions which
could implement new access method, for example. Previously it was
impossible because restoring from custom WAL would need to access system
catalog to find a redo custom function. This patch suggests generic way
to describe changes on page with standart layout.
Bump XLOG_PAGE_MAGIC because of new record type.
Author: Alexander Korotkov with a help of Petr Jelinek, Markus Nullmeier and
minor editorization by my
Reviewers: Petr Jelinek, Alvaro Herrera, Teodor Sigaev, Jim Nasby,
Michael Paquier
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/65578341af1ae50e52e0f45e691ce88ad5a1b9b1
Modified Files
--------------
doc/src/sgml/filelist.sgml | 1 +
doc/src/sgml/generic-wal.sgml | 141 ++++++++++
doc/src/sgml/postgres.sgml | 1 +
src/backend/access/rmgrdesc/Makefile | 6 +-
src/backend/access/rmgrdesc/genericdesc.c | 58 ++++
src/backend/access/transam/Makefile | 4 +-
src/backend/access/transam/generic_xlog.c | 431 ++++++++++++++++++++++++++++++
src/backend/access/transam/rmgr.c | 1 +
src/backend/replication/logical/decode.c | 1 +
src/bin/pg_xlogdump/.gitignore | 1 +
src/bin/pg_xlogdump/rmgrdesc.c | 1 +
src/include/access/generic_xlog.h | 42 +++
src/include/access/rmgrlist.h | 1 +
src/include/access/xlog_internal.h | 2 +-
14 files changed, 685 insertions(+), 6 deletions(-)