summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-11-07 15:03:46 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-11-07 15:13:02 +0200
commit2effb72e682a7dbdc9a8a60a80c22ec1fa9d8079 (patch)
tree7e508fb653afb566c4cf3f52b3f3e4cda25fe36d /src/backend/access/gist/gistxlog.c
parentd6e37b35cda9a88dfd938dd61e9986dd93cc6dd3 (diff)
downloadpostgresql-2effb72e682a7dbdc9a8a60a80c22ec1fa9d8079.tar.gz
Remove obsolete cases from GiST update redo code.
The code that generated a record to clear the F_TUPLES_DELETED flag hasn't existed since we got rid of old-style VACUUM FULL. I kept the code that sets the flag, although it's not used for anything anymore, because it might still be interesting information for debugging purposes that some tuples have been deleted from a page. Likewise, the code to turn the root page from non-leaf to leaf page was removed when we got rid of old-style VACUUM FULL. Remove the code to replay that action, too.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
-rw-r--r--src/backend/access/gist/gistxlog.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c
index b732f53267..2999d21191 100644
--- a/src/backend/access/gist/gistxlog.c
+++ b/src/backend/access/gist/gistxlog.c
@@ -125,26 +125,6 @@ gistRedoPageUpdateRecord(XLogRecPtr lsn, XLogRecord *record)
off++;
}
}
- else
- {
- /*
- * special case: leafpage, nothing to insert, nothing to delete,
- * then vacuum marks page
- */
- if (GistPageIsLeaf(page) && xldata->ntodelete == 0)
- GistClearTuplesDeleted(page);
- }
-
- if (!GistPageIsLeaf(page) &&
- PageGetMaxOffsetNumber(page) == InvalidOffsetNumber &&
- xldata->blkno == GIST_ROOT_BLKNO)
- {
- /*
- * all links on non-leaf root page was deleted by vacuum full, so
- * root page becomes a leaf
- */
- GistPageSetLeaf(page);
- }
PageSetLSN(page, lsn);
MarkBufferDirty(buffer);