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