pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Spencer Thomason <spencer@whiteskycommunications.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
Date: Sat, 03 Sep 2016 11:49:57 -0400
Message-ID: <9236.1472917797@sss.pgh.pa.us> (raw)
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>
	<E3ED4BBA-3F20-4624-AE01-F754954EBDB3@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

gin-big-endian-bug.patch (text/x-diff, 423B) download 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

view thread (11+ messages)  latest in thread

Message-ID: <9236.1472917797@sss.pgh.pa.us>
Permalink:  ../9236.1472917797@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9236.1472917797@sss.pgh.pa.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, spencer@whiteskycommunications.com
  Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
  In-Reply-To: <9236.1472917797@sss.pgh.pa.us>
  References: <20160826072658.15676.7628@wrigleys.postgresql.org> <21830.1472209531@sss.pgh.pa.us> <6FA6FDE7-5C60-4AB6-909D-7AB8039AEAD2@whiteskycommunications.com> <E3ED4BBA-3F20-4624-AE01-F754954EBDB3@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> <9236.1472917797@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox