Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index
Date
Msg-id 14897772-f4d9-296e-d20f-12fcbf5e1331@2ndquadrant.com
Whole thread Raw
In response to Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-bugs
On 8/1/17 21:23, Masahiko Sawada wrote:
> On Wed, Aug 2, 2017 at 7:52 AM, Andres Freund <andres@anarazel.de> wrote:
>> On 2017-08-01 16:28:31 -0400, Peter Eisentraut wrote:
>>> On 7/28/17 06:07, Masahiko Sawada wrote:
>>>> I could reproduced this issue and it seems to me that the cause of
>>>> this is that the table sync worker didn't get a snapshot before
>>>> starting table copy. Attached patch fixes this problem.
>>>
>>> Should it be GetTransactionSnapshot() rather than GetLatestSnapshot()?
>>
>> Don't think it makes a meaningful difference here, but I agree it's more
>> consistent.
> 
> +1.

committed with that change

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

pgsql-bugs by date:

Previous
From: Jov
Date:
Subject: Re: [BUGS] BUG #14765: Recreating databases from copied files.
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14764: #if HASH_DEBUG source in dynahash.c is fault.