From d150ff57812ae01a2f78a55f33a46f9b7febf933 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 24 Jan 2014 19:08:52 +0200 Subject: Reset unused fields in GIN data leaf page footer. The maxoff field is not used in the new, compressed page format. Let's reset it when converting an old-format page to the new format. The code won't care either way, but this makes it possible to use the field for something else in the future. --- src/backend/access/gin/ginxlog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/access/gin/ginxlog.c') diff --git a/src/backend/access/gin/ginxlog.c b/src/backend/access/gin/ginxlog.c index 9a978ce2bdb..3e86590ca0d 100644 --- a/src/backend/access/gin/ginxlog.c +++ b/src/backend/access/gin/ginxlog.c @@ -153,6 +153,7 @@ ginRedoRecompress(Page page, ginxlogRecompressDataLeaf *data) memcpy(segment, data->newdata, data->length - data->unmodifiedsize); GinDataLeafPageSetPostingListSize(page, data->length); GinPageSetCompressed(page); + GinPageGetOpaque(page)->maxoff = InvalidOffsetNumber; } static void -- cgit v1.2.3