Clarify 'dependent objects' for DROP COLUMN

From: robins <tharakan(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Clarify 'dependent objects' for DROP COLUMN
Date: 2013-03-12 05:42:42
Message-ID: CAEP4nAxJzygfcywQDg3R=K=ZioF51xXF4v2e6A9NrWP-Un=P=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Hi,

ALTER TABLE in postgresql.org/docs/devel/ says:

RESTRICT: Refuse to drop the column or constraint if there are any
dependent objects. This is the default behavior.

Could someone confirm whether 'dependent objects' also includes SEQUENCES? i.e.
if I create a sequence OWNED BY tbl.col1 and then try to drop the column
with RESTRICT, should it allow this DROP? Currently it does, but by reading
that line it seemed it shouldn't.

Thanks
--
Robins Tharakan
p.s.: Had to re-post this. Apologies if this lands up twice in the queue.

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2013-03-13 21:19:41 Re: Clarify 'dependent objects' for DROP COLUMN
Previous Message Robins 2013-03-12 04:21:44 Clarify 'dependent objects' for DROP COLUMN