From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: dnsl48@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs
Date: Wed, 13 Feb 2019 11:38:17 +0900
Message-ID: <20190213023817.GD5746@paquier.xyz> (raw)
In-Reply-To: <31358.1549981670@sss.pgh.pa.us>
References: <15631-188663b383e1e697@postgresql.org>
<24188.1549917188@sss.pgh.pa.us>
<043b0c10-5a27-b9ff-7451-b8a2ca9327b1@2ndquadrant.com>
<31358.1549981670@sss.pgh.pa.us>
On Tue, Feb 12, 2019 at 09:27:50AM -0500, Tom Lane wrote:
> Hm, I'd be more inclined to find where the sequence creation is happening
> and add a CCI at the end, because that comports better with the general
> plan for inserting CCIs. There may be other issues of this same sort with
> doing-X-just-after-identity-sequence-creation if you don't fix it that
> way.
Agreed. I don't think that it is the correct logic to put an
after-the-fact CCI just before executing any drop or truncate actions.
It should happen after the creation of the new object so as it becomes
correctly visible within the transaction.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, dnsl48@gmail.com
Subject: Re: BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs
In-Reply-To: <20190213023817.GD5746@paquier.xyz>
References: <15631-188663b383e1e697@postgresql.org> <24188.1549917188@sss.pgh.pa.us> <043b0c10-5a27-b9ff-7451-b8a2ca9327b1@2ndquadrant.com> <31358.1549981670@sss.pgh.pa.us> <20190213023817.GD5746@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