pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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: Tue, 12 Mar 2019 12:46:30 +0900
Message-ID: <20190312034630.GH13812@paquier.xyz> (raw)
In-Reply-To: <e5017903-059f-35f1-6f8e-84401bf90f91@2ndquadrant.com>
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>
	<20190213044104.GE5746@paquier.xyz>
	<12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com>
	<20190309013557.GF9266@paquier.xyz>
	<e5017903-059f-35f1-6f8e-84401bf90f91@2ndquadrant.com>

On Mon, Mar 11, 2019 at 09:41:14PM +0100, Peter Eisentraut wrote:
> I looked into backpatching this, but the test case doesn't fail in PG10.
>  I ran a round of bisecting but didn't arrive at a sensible result.  The
> test case appears to be a bit random in its failure modes.  The issue
> could in principle extend further back, since the code in question isn't
> really new.  Any ideas or suggestions?

I can reproduce the issue on a v10 server, for example:
=# create temporary table foo ( bar int generated by default as identity ) on
commit drop;
CREATE TABLE
=# \q
$ psql
=# create temporary table a (b varchar);
ERROR:  XX000: could not open relation with OID 16389

Perhaps you did not start with a fresh server or did not reset the
connection properly?  This counts.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (23+ messages)  latest in thread

Message-ID: <20190312034630.GH13812@paquier.xyz>
Permalink:  ../20190312034630.GH13812@paquier.xyz/
Also on:    postgresql.org/message-id/20190312034630.GH13812@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, tgl@sss.pgh.pa.us, 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: <20190312034630.GH13812@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> <20190213044104.GE5746@paquier.xyz> <12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com> <20190309013557.GF9266@paquier.xyz> <e5017903-059f-35f1-6f8e-84401bf90f91@2ndquadrant.com> <20190312034630.GH13812@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