]> granicus.if.org Git - postgresql/commit
Have CREATE TABLE LIKE add OID column if any LIKEd table has one
authorBruce Momjian <bruce@momjian.us>
Tue, 6 Oct 2015 01:19:16 +0000 (21:19 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 6 Oct 2015 01:19:16 +0000 (21:19 -0400)
commitb943f502b788a3708ca660785fd14a4ee938fdcd
tree218ef8c4f5e3143fb4d43ee67ffd4371bb036466
parent28b3a3d41a8b72841a3f5067217f639a7d337c0e
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
src/backend/parser/parse_utilcmd.c
src/test/regress/expected/create_table.out
src/test/regress/expected/create_table_like.out
src/test/regress/sql/create_table.sql
src/test/regress/sql/create_table_like.sql