Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgDCi-0001eV-RV for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Sep 2016 15:50:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bgDCi-0002WS-9b for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Sep 2016 15:50:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bgDCh-0002W9-SD for pgsql-bugs@postgresql.org; Sat, 03 Sep 2016 15:50:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bgDCf-0004mY-RK for pgsql-bugs@postgresql.org; Sat, 03 Sep 2016 15:49:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u83FnvmB009237; Sat, 3 Sep 2016 11:49:57 -0400 From: Tom Lane To: Spencer Thomason cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild In-reply-to: <8020.1472916375@sss.pgh.pa.us> References: <20160826072658.15676.7628@wrigleys.postgresql.org> <21830.1472209531@sss.pgh.pa.us> <6FA6FDE7-5C60-4AB6-909D-7AB8039AEAD2@whiteskycommunications.com> <28809.1472740077@sss.pgh.pa.us> <7E7B1C18-719C-4BF8-8A60-D8F0857EA03F@whiteskycommunications.com> <921.1472859995@sss.pgh.pa.us> <8020.1472916375@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 03 Sep 2016 11:26:15 -0400" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <9203.1472917755.0@sss.pgh.pa.us> Date: Sat, 03 Sep 2016 11:49:57 -0400 Message-ID: <9236.1472917797@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9203.1472917755.1@sss.pgh.pa.us> 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 ------- =_aaaaaaaaaa0 Content-Type: text/x-diff; name="gin-big-endian-bug.patch"; charset="us-ascii" Content-ID: <9203.1472917755.2@sss.pgh.pa.us> Content-Description: gin-big-endian-bug.patch Content-Transfer-Encoding: quoted-printable 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; =20 ItemPointerData *modifieditems; - int nmodifieditems; + uint16 nmodifieditems; =20 /* * The following fields represent the items in this segment. If 'items' is ------- =_aaaaaaaaaa0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ------- =_aaaaaaaaaa0--