diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-07-31 16:48:43 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-07-31 16:48:55 +0300 |
commit | 54685338e37889eebd473804c3feb006dd83a882 (patch) | |
tree | 13e10f54e76fb5d31332367a66a617eeebd0a2d8 /src/backend/replication/logical/decode.c | |
parent | f51ead09df19f0a074c07657b7de8dba0f3050d6 (diff) | |
download | postgresql-54685338e37889eebd473804c3feb006dd83a882.tar.gz postgresql-54685338e37889eebd473804c3feb006dd83a882.zip |
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.
Diffstat (limited to 'src/backend/replication/logical/decode.c')
-rw-r--r-- | src/backend/replication/logical/decode.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index 8f8732afdce..9f1b20e04ab 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -435,14 +435,6 @@ DecodeHeapOp(LogicalDecodingContext *ctx, XLogRecordBuffer *buf) DecodeDelete(ctx, buf); break; - case XLOG_HEAP_NEWPAGE: - - /* - * This is only used in places like indexams and CLUSTER which - * don't contain changes relevant for logical replication. - */ - break; - case XLOG_HEAP_INPLACE: /* |