drop view even with dependencies?

From: Henry Ortega <juandelacruz(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: drop view even with dependencies?
Date: 2005-03-07 21:38:53
Message-ID: 2bffcc3305030713384c81d59b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Is there a way to drop a VIEW in postgres without
the need to drop all the dependencies?

VIEW 3
|
VIEW 2
|
VIEW 1

In my case, VIEW 3 depends on VIEW 2, and VIEW 2 depends
on VIEW 1.

Is there a way to drop VIEW 3 without dropping VIEW 1 and 2?
I tried CREATE OR REPLACE VIEW but replace will only work
if they have the same number of fields.

Also with tables, can I drop a table even if there are multiple views
that depend on it?

It's such a pain in the neck to have to drop all the dependencies and
recreate them all over again. Any help would greatly appreciated.
I am using Postgres 7.3.2

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-03-08 01:17:03 Re: drop view even with dependencies?
Previous Message PFC 2005-03-07 18:41:25 Re: Links between rows in a table