Re: BUG #14295: Hot standby crash during tsvector rebuild - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14295: Hot standby crash during tsvector rebuild
Date
Msg-id 9236.1472917797@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #14295: Hot standby crash during tsvector rebuild  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #14295: Hot standby crash during tsvector rebuild  (Spencer Thomason <spencer@whiteskycommunications.com>)
List pgsql-bugs
I wrote:
> I've now traced it to this bit in gindatapage.c:

The attached patch (against 9.4) should be sufficient to fix this problem.
Perhaps you can do some testing there while I'm doing the same.

            regards, tom lane

diff --git a/src/backend/access/gin/gindatapage.c b/src/backend/access/gin/gindatapage.c
index 2090209..77725ac 100644
--- a/src/backend/access/gin/gindatapage.c
+++ b/src/backend/access/gin/gindatapage.c
@@ -86,7 +86,7 @@ typedef struct
     char        action;

     ItemPointerData *modifieditems;
-    int            nmodifieditems;
+    uint16        nmodifieditems;

     /*
      * The following fields represent the items in this segment. If 'items' is

pgsql-bugs by date:

Previous
From: Spencer Thomason
Date:
Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
Next
From: Jeffrey Walton
Date:
Subject: Re: BUG #14308: Postgres 9.5.4 does not configure against OpenSSL 1.1.0