Re: BUG #15631: Generated as identity field in a temporary tablewith on commit drop corrupts system catalogs

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15631: Generated as identity field in a temporary tablewith on commit drop corrupts system catalogs
Дата
Msg-id 20190312034630.GH13812@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #15631: Generated as identity field in a temporary table withon commit drop corrupts system catalogs  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: BUG #15631: Generated as identity field in a temporary table withon commit drop corrupts system catalogs
Список 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

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: BUG #15631: Generated as identity field in a temporary table withon commit drop corrupts system catalogs
Следующее
От: Sandeep Thakkar
Дата:
Сообщение: Re: Installation issue