pgsql: Allow ALTER TYPE .. ADD ATTRIBUTE .. CASCADE to recurse to desce

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow ALTER TYPE .. ADD ATTRIBUTE .. CASCADE to recurse to desce
Date: 2011-04-21 03:02:13
Message-ID: E1QCk9l-0002LN-7b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow ALTER TYPE .. ADD ATTRIBUTE .. CASCADE to recurse to descendants.

Without this, adding an attribute to a typed table with an inheritance
child fails, which is surprising.

Noah Misch, with minor changes by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a0e8df527ec24e8dba98f295c0e2ab6ccf3e5d2c

Modified Files
--------------
doc/src/sgml/ref/alter_type.sgml | 2 +-
src/backend/commands/tablecmds.c | 5 +++--
src/test/regress/expected/alter_table.out | 15 +++++++++++++++
src/test/regress/sql/alter_table.sql | 4 ++++
4 files changed, 23 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-21 23:29:12 pgsql: Avoid possible divide-by-zero in gincostestimate.
Previous Message Robert Haas 2011-04-21 02:26:21 pgsql: Fix use of incorrect constant RemoveRoleFromObjectACL.