Re: BUG #14295: Hot standby crash during tsvector rebuild

From: Spencer Thomason <spencer(at)whiteskycommunications(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
Date: 2016-09-06 19:48:13
Message-ID: 49C6FFB8-E531-441B-B556-3530C957FE2A@whiteskycommunications.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Tom,
I've been testing this from some time and this appears to resolve the issue. Thanks for the quick fix!

Best regards,
Spencer

> On Sep 3, 2016, at 8:49 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message 阎兆珣 2016-09-07 03:02:28 language code incompatibility in Windows
Previous Message Dave Page 2016-09-06 08:01:59 Re: PgAdmin rc-1 Version Backup Errors