Re: How can I look at a recursive table dependency tree?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <stark(at)enterprisedb(dot)com>
Cc: emilu(at)encs(dot)concordia(dot)ca, "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How can I look at a recursive table dependency tree?
Date: 2009-05-30 15:49:02
Message-ID: 9581.1243698542@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Stark <stark(at)enterprisedb(dot)com> writes:
> On Fri, May 29, 2009 at 5:10 PM, Emi Lu <emilu(at)encs(dot)concordia(dot)ca> wrote:
>> Is it possible to find all view names depend on one table?

> With 8.4 you can use a query like this (change 'messages' to your table name)

In earlier versions the usual trick is

BEGIN;
DROP VIEW whatever RESTRICT;
... read the error message ...
ROLLBACK;

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Tilton 2009-05-30 22:02:26 nooby q: how get a row just inserted?
Previous Message Merlin Moncure 2009-05-30 12:36:35 Re: Modifying ENUM Type