Thread: pgsql: CREATE TABLE ...

pgsql: CREATE TABLE ...

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        analyze.c (r1.314.4.1 -> r1.314.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/analyze.c.diff?r1=1.314.4.1&r2=1.314.4.2)