pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: scott@deltaex.com, pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14758: Segfault with logical replication on a function index
Date: Tue, 1 Aug 2017 15:52:32 -0700
Message-ID: <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de> (raw)
In-Reply-To: <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com>
References: <20170724072240.1457.88066@wrigleys.postgresql.org>
	<CAD21AoCHutPoUdtZg2RHDneXEFnbL3zp+FcQkMrZ8Lrfa3kZLQ@mail.gmail.com>
	<31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (13+ messages)  latest in thread

Message-ID: <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de>
Permalink:  ../20170801225232.csedyabn6rifsrx6@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170801225232.csedyabn6rifsrx6@alap3.anarazel.de

 · 

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: andres@anarazel.de, peter.eisentraut@2ndquadrant.com, sawada.mshk@gmail.com
  Subject: Re: BUG #14758: Segfault with logical replication on a function index
  In-Reply-To: <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de>
  References: <20170724072240.1457.88066@wrigleys.postgresql.org> <CAD21AoCHutPoUdtZg2RHDneXEFnbL3zp+FcQkMrZ8Lrfa3kZLQ@mail.gmail.com> <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com> <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de>

* 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