pgsql: Have CREATE TABLE LIKE add OID column if any LIKEd table has one

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Have CREATE TABLE LIKE add OID column if any LIKEd table has one
Date: 2015-10-06 01:19:24
Message-ID: E1ZjGua-0005ns-49@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Have CREATE TABLE LIKE add OID column if any LIKEd table has one

Also, process constraints for LIKEd tables at the end so an OID column
can be referenced in a constraint.

Report by Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b943f502b788a3708ca660785fd14a4ee938fdcd

Modified Files
--------------
src/backend/parser/parse_utilcmd.c | 44 ++++++++++++++++++++---
src/test/regress/expected/create_table.out | 3 ++
src/test/regress/expected/create_table_like.out | 27 ++++++++++++++
src/test/regress/sql/create_table.sql | 4 +++
src/test/regress/sql/create_table_like.sql | 13 +++++++
5 files changed, 86 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2015-10-06 19:52:05 pgsql: Remove more volatile qualifiers.
Previous Message Bruce Momjian 2015-10-06 01:03:46 pgsql: to_number(): allow 'V' to divide by 10^(the number of digits)