diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2016-04-01 12:21:48 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2016-04-01 12:21:48 +0300 |
commit | 65578341af1ae50e52e0f45e691ce88ad5a1b9b1 (patch) | |
tree | 8449bb814debcbc2fdba25cb63c6f681decd3b0a /src/backend/replication/logical/decode.c | |
parent | c202ecf9023ac3571709c274b326038ae39e90a7 (diff) | |
download | postgresql-65578341af1ae50e52e0f45e691ce88ad5a1b9b1.tar.gz postgresql-65578341af1ae50e52e0f45e691ce88ad5a1b9b1.zip |
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
Diffstat (limited to 'src/backend/replication/logical/decode.c')
-rw-r--r-- | src/backend/replication/logical/decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index f0bc67c7f5e..7781ebcae0b 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -143,6 +143,7 @@ LogicalDecodingProcessRecord(LogicalDecodingContext *ctx, XLogReaderState *recor case RM_BRIN_ID: case RM_COMMIT_TS_ID: case RM_REPLORIGIN_ID: + case RM_GENERIC_ID: /* just deal with xid, and done */ ReorderBufferProcessXid(ctx->reorder, XLogRecGetXid(record), buf.origptr); |