Clarify 'dependent objects' for DROP COLUMN

From: Robins <robins(at)pobox(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Clarify 'dependent objects' for DROP COLUMN
Date: 2013-03-12 04:21:44
Message-ID: CAEP4nAxFw=2pB-oJyWZkwo7hccggoDzooEBmv+umd1R-neyZXg@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

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message robins 2013-03-12 05:42:42 Clarify 'dependent objects' for DROP COLUMN
Previous Message Peter Eisentraut 2013-03-10 21:17:51 Re: The relation between "checkpoint_timeout" and "checkpoint_warning" is missing