public inbox for [email protected]
help / color / mirror / Atom feedFrom: robins <[email protected]>
To: [email protected]
Subject: Clarify 'dependent objects' for DROP COLUMN
Date: Tue, 12 Mar 2013 11:12:42 +0530
Message-ID: <CAEP4nAxJzygfcywQDg3R=K=ZioF51xXF4v2e6A9NrWP-Un=P=Q@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-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.
view thread (5+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Clarify 'dependent objects' for DROP COLUMN
In-Reply-To: <CAEP4nAxJzygfcywQDg3R=K=ZioF51xXF4v2e6A9NrWP-Un=P=Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox