pgsql: Add more checks against altering typed tables - Prohibit - Mailing list pgsql-committers

From petere@postgresql.org (Peter Eisentraut)
Subject pgsql: Add more checks against altering typed tables - Prohibit
Date
Msg-id 20100723200409.528FC7541D5@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Add more checks against altering typed tables

- Prohibit altering column type
- Prohibit changing inheritance
- Move checks from Exec to Prep phases in ALTER TABLE code

backpatched to 9.0

Tags:
----
REL9_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/commands:
        tablecmds.c (r1.332 -> r1.332.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.332&r2=1.332.2.1)
    pgsql/src/test/regress/expected:
        typed_table.out (r1.1 -> r1.1.6.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/typed_table.out?r1=1.1&r2=1.1.6.1)
    pgsql/src/test/regress/sql:
        typed_table.sql (r1.1 -> r1.1.6.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/typed_table.sql?r1=1.1&r2=1.1.6.1)

pgsql-committers by date:

Previous
From: rhaas@postgresql.org (Robert Haas)
Date:
Subject: pgsql: Have psql avoid describing local sockets as host names.
Next
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Add more checks against altering typed tables - Prohibit