]> granicus.if.org Git - postgresql/commit
CREATE TABLE ... LIKE ... should mark the columns it creates with
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Oct 2006 20:03:18 +0000 (20:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Oct 2006 20:03:18 +0000 (20:03 +0000)
commit8608aa953475e58899d630d1bea6beb9a3a370f4
tree47a1f498f94dd3b49352dd84d98c65eb4a844dc4
parent13abcaba8066b992ac3406716e415fedccbe7ef5
CREATE TABLE ... LIKE ... should mark the columns it creates with
attislocal = true, since they are not really inherited but merely copied
from the original table.  I'm not sure if there are any cases where it makes
a real difference given the existing uses of the flag, but wrong is wrong.
This was fixed in passing in HEAD by the LIKE INCLUDING CONSTRAINTS patch,
but never back-patched.
src/backend/parser/analyze.c