pgsql: Throw an appropriate error if ALTER COLUMN TYPE finds a dependen

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Throw an appropriate error if ALTER COLUMN TYPE finds a dependen
Date: 2010-10-02 22:29:05
Message-ID: E1P2AZl-0005YB-4T@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Throw an appropriate error if ALTER COLUMN TYPE finds a dependent trigger.

Actually making this case work, if the column is used in the trigger's
WHEN condition, will take some new code that probably isn't appropriate
to back-patch. For now, just throw a FEATURE_NOT_SUPPORTED error rather
than allowing control to reach the "unexpected object" case. Per bug #5688
from Daniel Grace. Back-patch to 9.0 where the possibility of such a
dependency was introduced.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=8178d9480aeedfa20157bb98e21b5f3b6eb8a957

Modified Files
--------------
src/backend/commands/tablecmds.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-10-02 22:43:05 pgsql: Remove excess argument to open(2).
Previous Message Tom Lane 2010-10-01 14:26:42 pgsql: Fix back-branch breakage from ill-advised last-minute commit.