]> 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:26 +0000 (20:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Oct 2006 20:03:26 +0000 (20:03 +0000)
commit1c2d02c499b3b7fac1b2bbc9a7e00cc97eaa5886
treea548eb1ccf7ffbe8f2b5c2abf51d0ad185cb87fe
parent7b165e3ba54da7c845bb0f7236fcb08656361a96
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