Re: How determine a Views dependents

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Charles Mortell" <cmortell(at)apt-cafm(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How determine a Views dependents
Date: 2007-06-22 17:47:35
Message-ID: 24464.1182534455@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Charles Mortell" <cmortell(at)apt-cafm(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Schapachnik 2007-06-22 17:48:52 Re: Optimizer problem in 8.1.6
Previous Message Fernando Schapachnik 2007-06-22 17:45:29 Re: Optimizer problem in 8.1.6