From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: andres@anarazel.de
Cc: petr.jelinek@2ndquadrant.com
Cc: pet.slavov@gmail.com
Cc: alvherre@alvh.no-ip.org
Cc: petr@2ndquadrant.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15114: logical decoding Segmentation fault
Date: Wed, 30 Jan 2019 12:22:15 +0100
Message-ID: <de2a118a-6f07-4689-0ff8-0c8dc2a23d3c@2ndquadrant.com> (raw)
In-Reply-To: <20190129075941.GH3121@paquier.xyz>
References: <20181030230736.GA1632@paquier.xyz>
<20181030230931.22pms35u3sqx4i7c@alap3.anarazel.de>
<20181031072938.GC7862@paquier.xyz>
<20181119.184916.179764314.horiguchi.kyotaro@lab.ntt.co.jp>
<56d0ccb4-e9c9-1225-256d-c287adf5494e@2ndquadrant.com>
<20190129075941.GH3121@paquier.xyz>
On 29/01/2019 08:59, Michael Paquier wrote:
> On Mon, Jan 28, 2019 at 10:32:16PM +0100, Peter Eisentraut wrote:
>> My approach is to make RelationGetIndexAttrBitmap() not need a snapshot.
>> The whole code was overly complicated anyway, calling BuildIndexInfo()
>> and then throwing the result away. We can do it directly more
>> efficiently and avoid all the business about eval_const_expressions().
>> Moreover, this fixes the problem in a central place and does not require
>> bespoke separate fixes in the publisher and subscriber code. External
>> logical decoding or logical replication implementations could also be
>> affected and would benefit from this fix.
>
> I have spent some time for the last couple of days looking at this
> patch, and that's a neat approach.
>
> + * those might run constants evaluation, which needs a snapshot, which
> "constants evaluation" sounds like weird English. "constant
> evaluation" or "evaluation of constants would be better"?
Committed and backpatched with your and Noah's changes.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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, michael@paquier.xyz, horiguchi.kyotaro@lab.ntt.co.jp, andres@anarazel.de, petr.jelinek@2ndquadrant.com, pet.slavov@gmail.com, alvherre@alvh.no-ip.org, petr@2ndquadrant.com
Subject: Re: BUG #15114: logical decoding Segmentation fault
In-Reply-To: <de2a118a-6f07-4689-0ff8-0c8dc2a23d3c@2ndquadrant.com>
References: <20181030230736.GA1632@paquier.xyz> <20181030230931.22pms35u3sqx4i7c@alap3.anarazel.de> <20181031072938.GC7862@paquier.xyz> <20181119.184916.179764314.horiguchi.kyotaro@lab.ntt.co.jp> <56d0ccb4-e9c9-1225-256d-c287adf5494e@2ndquadrant.com> <20190129075941.GH3121@paquier.xyz> <de2a118a-6f07-4689-0ff8-0c8dc2a23d3c@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