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)
commit273f89455f7f72a3f8fc63d77b77bdc7d2c3a275
treeda7d4feb6db4856e2916b9c392bcba8e3f3afbc5
parent3530cc5b04c72d1a1e094b1251897834adf4d059
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