pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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: Tue, 29 Jan 2019 16:59:41 +0900
Message-ID: <20190129075941.GH3121@paquier.xyz> (raw)
In-Reply-To: <56d0ccb4-e9c9-1225-256d-c287adf5494e@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>
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"?
Thanks for adding a test case as well, Peter.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
view thread (30+ messages) latest in thread
Message-ID: <20190129075941.GH3121@paquier.xyz> Permalink: ../20190129075941.GH3121@paquier.xyz/ Also on: postgresql.org/message-id/20190129075941.GH3121@paquier.xyz ·
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: michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, 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: <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> * 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