From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add Generic WAL interface |
Date: | 2016-04-01 09:35:12 |
Message-ID: | E1alvU0-0007LD-IH@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2016-04-01 13:38:10 | pgsql: Fix typo in generic wal docs |
Previous Message | Craig Ringer | 2016-04-01 05:43:55 | Re: Re: [COMMITTERS] pgsql: Enable logical slots to follow timeline switches |