pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add Generic WAL interface
Date: Fri, 01 Apr 2016 09:35:12 +0000
Message-ID: <E1alvU0-0007LD-IH@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1alvU0-0007LD-IH@gemulon.postgresql.org>
Permalink:  ../E1alvU0-0007LD-IH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1alvU0-0007LD-IH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Add Generic WAL interface
  In-Reply-To: <E1alvU0-0007LD-IH@gemulon.postgresql.org>
  References: <E1alvU0-0007LD-IH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox