From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Scott Milliken <scott@deltaex.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14758: Segfault with logical replication on a function index
Date: Wed, 2 Aug 2017 11:36:54 -0400
Message-ID: <14897772-f4d9-296e-d20f-12fcbf5e1331@2ndquadrant.com> (raw)
In-Reply-To: <CAD21AoCJBTZDZTG28MJdRv8c7iwr721paf_TCe9WydRVWnDhKw@mail.gmail.com>
References: <20170724072240.1457.88066@wrigleys.postgresql.org>
<CAD21AoCHutPoUdtZg2RHDneXEFnbL3zp+FcQkMrZ8Lrfa3kZLQ@mail.gmail.com>
<31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com>
<20170801225232.csedyabn6rifsrx6@alap3.anarazel.de>
<CAD21AoCJBTZDZTG28MJdRv8c7iwr721paf_TCe9WydRVWnDhKw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
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: peter.eisentraut@2ndquadrant.com, sawada.mshk@gmail.com, andres@anarazel.de, scott@deltaex.com
Subject: Re: BUG #14758: Segfault with logical replication on a function index
In-Reply-To: <14897772-f4d9-296e-d20f-12fcbf5e1331@2ndquadrant.com>
References: <20170724072240.1457.88066@wrigleys.postgresql.org> <CAD21AoCHutPoUdtZg2RHDneXEFnbL3zp+FcQkMrZ8Lrfa3kZLQ@mail.gmail.com> <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com> <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de> <CAD21AoCJBTZDZTG28MJdRv8c7iwr721paf_TCe9WydRVWnDhKw@mail.gmail.com> <14897772-f4d9-296e-d20f-12fcbf5e1331@2ndquadrant.com>
* 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