Re: How determine a Views dependents - Mailing list pgsql-general

From Tom Lane
Subject Re: How determine a Views dependents
Date
Msg-id 24464.1182534455@sss.pgh.pa.us
Whole thread Raw
In response to How determine a Views dependents  ("Charles Mortell" <cmortell@apt-cafm.com>)
List pgsql-general
"Charles Mortell" <cmortell@apt-cafm.com> writes:
>     I took over an existing PG 8.0 database running on Windows XP. I need to
> update a view so I know I need to drop the existing view and all the objects
> that depend on it.
>     The DB is large enough that I can't just look through it with PGAdmin. In
> an organized way, how can I find out what those dependents are?

The traditional way is

    drop view victim restrict;
    ... read the error message ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: SPI using perl
Next
From: Fernando Schapachnik
Date:
Subject: Re: Optimizer problem in 8.1.6