]> granicus.if.org Git - postgresql/commitdiff
GIN entry pages follow the standard page layout - tell XLogInsert.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Apr 2014 11:49:30 +0000 (14:49 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Apr 2014 11:51:28 +0000 (14:51 +0300)
The entry B-tree pages all follow the standard page layout. The 9.3 code has
this right. I inadvertently changed this at some point during the big
refactorings in git master.

src/backend/access/gin/ginentrypage.c

index 5c7893419d4c311fd3b6d218dcdd1eeaa7c9980e..4291bab63beab784f5e85938b46af1d9ccb125b9 100644 (file)
@@ -554,14 +554,14 @@ entryPlaceToPage(GinBtree btree, Buffer buf, GinBtreeStack *stack,
        data.offset = off;
 
        rdata[cnt].buffer = buf;
-       rdata[cnt].buffer_std = false;
+       rdata[cnt].buffer_std = true;
        rdata[cnt].data = (char *) &data;
        rdata[cnt].len = offsetof(ginxlogInsertEntry, tuple);
        rdata[cnt].next = &rdata[cnt + 1];
        cnt++;
 
        rdata[cnt].buffer = buf;
-       rdata[cnt].buffer_std = false;
+       rdata[cnt].buffer_std = true;
        rdata[cnt].data = (char *) insertData->entry;
        rdata[cnt].len = IndexTupleSize(insertData->entry);
        rdata[cnt].next = NULL;