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

From Andres Freund
Subject Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index
Date
Msg-id 20170801225232.csedyabn6rifsrx6@alap3.anarazel.de
Whole thread Raw
In response to Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index
List pgsql-bugs
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.

- Andres


-- 
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: Peter Geoghegan
Date:
Subject: Re: [BUGS] Crash report for some ICU-52 (debian8) COLLATE andwork_mem values
Next
From: Masahiko Sawada
Date:
Subject: Re: [BUGS] BUG #14758: Segfault with logical replication on afunction index