Re: BUG #14474: Issue with temp table creation and OIDs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jeffdafoe(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14474: Issue with temp table creation and OIDs
Date: 2016-12-22 19:38:59
Message-ID: 24786.1482435539@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

jeffdafoe(at)gmail(dot)com writes:
> create table test (id bigint) WITH (OIDS=FALSE);
> create temporary table test_tmp (like test) WITH (OIDS=TRUE);
> select oid, id from test_tmp;

> In 9.3 this works, in 9.6 this generates a 'ERROR: column "oid" does not
> exist' on the select statement.

I think this must be the fault of commit b943f502b --- it's overriding
test_tmp's WITH on the basis of what it found in LIKE tables. Will fix,
thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Amit Kapila 2016-12-23 04:29:31 Re: BUG #14473: Parallel query aborts with too many connections
Previous Message Tom Lane 2016-12-22 15:42:01 Re: Can't build uuid-ossp extension from source