Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3F4E09FBEE7 for ; Fri, 6 Apr 2007 20:39:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 00692-02 for ; Fri, 6 Apr 2007 20:39:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B504F9FBC43 for ; Fri, 6 Apr 2007 20:39:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l36Ndcdm029159; Fri, 6 Apr 2007 19:39:38 -0400 (EDT) To: "George Pavlov" cc: "pgsql-sql" Subject: Re: dropping a schema and cross-schema dependencies In-reply-to: <8C5B026B51B6854CBE88121DBF097A86A2CAF1@ehost010-33.exch010.intermedia.net> References: <8C5B026B51B6854CBE88121DBF097A86A2CAF1@ehost010-33.exch010.intermedia.net> Comments: In-reply-to "George Pavlov" message dated "Fri, 06 Apr 2007 15:09:21 -0700" Date: Fri, 06 Apr 2007 19:39:38 -0400 Message-ID: <29158.1175902778@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/87 X-Sequence-Number: 28087 "George Pavlov" writes: > As an immediate solution can anyone share a comprehensive query to > INFORMATION_SCHEMA/PG_CATALOG that can be used to check for any > cross-schema dependencies and halt before issuing a DROP with a CASCADE? Issue the DROP without CASCADE and read the error message. regards, tom lane