Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFGj5-00070A-Gh for pgsql-docs@arkaria.postgresql.org; Tue, 12 Mar 2013 04:22:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UFGj5-0005zy-1A for pgsql-docs@arkaria.postgresql.org; Tue, 12 Mar 2013 04:22:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFGj4-0005zt-Cj for pgsql-docs@postgresql.org; Tue, 12 Mar 2013 04:22:10 +0000 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFGj1-0000eA-1w for pgsql-docs@postgresql.org; Tue, 12 Mar 2013 04:22:09 +0000 Received: by mail-wi0-f182.google.com with SMTP id hi18so1486852wib.3 for ; Mon, 11 Mar 2013 21:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=nsOkWhEkF7XWg2fooY2Szd5h30OPoA03RlC7l48fs+o=; b=QlwfWCHYotHxoq20PMw/1rh0fFBHPeKyBwDHRxsNMbj+wUFJ4upWhR3t+22kwtnIMK F9GXzsioo+bvMqzhQxfU63aMfkIhwXtRn9SvaBAMAQPK9kEXgVjW4gG41iWaGgidGApV Zirk5DvvvPe4edgL+GX7PBejRBVVSups/q0ZMFKj+dC1TXbnGkD82pzymyXXoI4vG0vz 9gDn0DdjJnzBs08ui1s89uFRXSkId0MHNjB/G4Jrnsx2eTDLEIxWof0ZcKLphaRoEiD4 BhYdy2hx/ocBwqPHznGhj7M9ICImF/ghcEzCgeOk/JgNsp2k8xtembOCvtLqx51mKpnd ZNmw== X-Received: by 10.181.12.5 with SMTP id em5mr16728024wid.24.1363062125805; Mon, 11 Mar 2013 21:22:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.13.227 with HTTP; Mon, 11 Mar 2013 21:21:44 -0700 (PDT) From: Robins Date: Tue, 12 Mar 2013 09:51:44 +0530 X-Google-Sender-Auth: nRGG2LaC6iK9HJdRfFUCvCM7Tqk Message-ID: Subject: Clarify 'dependent objects' for DROP COLUMN To: pgsql-docs@postgresql.org Content-Type: multipart/alternative; boundary=f46d043c7c58d0cae204d7b2a19a X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --f46d043c7c58d0cae204d7b2a19a Content-Type: text/plain; charset=ISO-8859-1 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 --f46d043c7c58d0cae204d7b2a19a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
= Hi,
<= div class=3D"gmail_default">
ALTER TABLE in=A0postgresql.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 inclu= des 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? Curr= ently it does, but by reading that line it seemed it shouldn't.<= /div>

T= hanks
---
Robins Tharakan
--f46d043c7c58d0cae204d7b2a19a--