aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-04-01 21:16:10 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-04-01 21:16:10 +0300
commitcfe992e7eb24fa92f93ee9d31f1f0f515a49c11d (patch)
treedadf41a491d65ffbd73db9d06743b35a376b603e
parent954523cdfe229f1cb99a43a19e291a557ae2822d (diff)
downloadpostgresql-cfe992e7eb24fa92f93ee9d31f1f0f515a49c11d.tar.gz
postgresql-cfe992e7eb24fa92f93ee9d31f1f0f515a49c11d.zip
Remove dead check for backup block, replace with Assert.
We don't use backup blocks with GIN vacuum records anymore, the page is always recreated from scratch.
-rw-r--r--src/backend/access/gin/ginxlog.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/access/gin/ginxlog.c b/src/backend/access/gin/ginxlog.c
index 02e566cc685..f65a98d95ff 100644
--- a/src/backend/access/gin/ginxlog.c
+++ b/src/backend/access/gin/ginxlog.c
@@ -564,12 +564,8 @@ ginRedoVacuumPage(XLogRecPtr lsn, XLogRecord *record)
Assert(xlrec->hole_offset < BLCKSZ);
Assert(xlrec->hole_length < BLCKSZ);
- /* If we have a full-page image, restore it and we're done */
- if (record->xl_info & XLR_BKP_BLOCK(0))
- {
- (void) RestoreBackupBlock(lsn, record, 0, false, false);
- return;
- }
+ /* Backup blocks are not used, we'll re-initialize the page always. */
+ Assert(!(record->xl_info & XLR_BKP_BLOCK_MASK));
buffer = XLogReadBuffer(xlrec->node, xlrec->blkno, true);
if (!BufferIsValid(buffer))