Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6j6y-00078o-Lx for pgsql-sql@arkaria.postgresql.org; Fri, 24 Jan 2014 15:56:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W6j6y-00055x-52 for pgsql-sql@arkaria.postgresql.org; Fri, 24 Jan 2014 15:56:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6j6w-00054T-LS for pgsql-sql@postgresql.org; Fri, 24 Jan 2014 15:56:02 +0000 Received: from oldperseverance.encs.concordia.ca ([132.205.96.92]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6j6t-00060z-8o for pgsql-sql@postgresql.org; Fri, 24 Jan 2014 15:56:02 +0000 Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id s0OFtvUO002548 for ; Fri, 24 Jan 2014 10:55:57 -0500 Message-ID: <52E28D0D.3080908@encs.concordia.ca> Date: Fri, 24 Jan 2014 10:55:57 -0500 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: pgsql-sql Subject: find all views depend on a schema/table Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2014/01/24 10:55:57 EST X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hello, Is there a simple way to query all views depend on a schema or table? E.g., view_schema| view_name | depends on schema_name | depends on t1 ===========|===========|========================|================ v_schema |v1 | test | t1 "v_schema.v1" is defined as select .... from test.t1... where; Thanks a lot! -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql