git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 954523c)
Remove dead check for backup block, replace with Assert.
Tue, 1 Apr 2014 18:16:10 +0000 (21:16 +0300)
Tue, 1 Apr 2014 18:16:10 +0000 (21:16 +0300)
We don't use backup blocks with GIN vacuum records anymore, the page is
always recreated from scratch.


diff --git a/src/backend/access/gin/ginxlog.c b/src/backend/access/gin/ginxlog.c
index 02e566cc685396947a9b7357905d2d51655fa0ce..f65a98d95ff31b976b3dee73dee2af8fd52d56de 100644 (file)
--- 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))
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /