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