pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: dnsl48@gmail.com
Subject: BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs
Date: Mon, 11 Feb 2019 17:43:13 +0000
Message-ID: <15631-188663b383e1e697@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15631
Logged by:          Serge Latyntsev
Email address:      dnsl48@gmail.com
PostgreSQL version: 11.1
Operating system:   Alpine
Description:        

When using `generated by default as identity` in a temporary table with `on
commit drop`, but without starting a transaction, system catalogs get
corrupted and won't let create temporary tables anymore.

Here's how to reproduce (within a docker container):

$ docker exec -it $(docker run -d --rm postgres:11.1-alpine) bash
# psql postgres postgres
# create temporary table foo ( bar int generated by default as identity ) on
commit drop;
CREATE TABLE
# \q
# psql postgres postgres 
# create temporary table a (b varchar);
ERROR:  could not open relation with OID 16388
LINE 1: create temporary table a (b varchar);



view thread (23+ messages)  latest in thread

Message-ID: <15631-188663b383e1e697@postgresql.org>
Permalink:  ../15631-188663b383e1e697@postgresql.org/
Also on:    postgresql.org/message-id/15631-188663b383e1e697@postgresql.org

 · 

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: noreply@postgresql.org, 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: <15631-188663b383e1e697@postgresql.org>
  References: <15631-188663b383e1e697@postgresql.org>

* 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