Re: BUG #15631: Generated as identity field in a temporary tablewith on commit drop corrupts system catalogs - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #15631: Generated as identity field in a temporary tablewith on commit drop corrupts system catalogs
Date
Msg-id 20190312034630.GH13812@paquier.xyz
Whole thread Raw
In response to Re: BUG #15631: Generated as identity field in a temporary table withon commit drop corrupts system catalogs  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: BUG #15631: Generated as identity field in a temporary table withon commit drop corrupts system catalogs  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-bugs
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

Attachment

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #15631: Generated as identity field in a temporary table withon commit drop corrupts system catalogs
Next
From: Sandeep Thakkar
Date:
Subject: Re: Installation issue