Cascade delete views? - Mailing list pgsql-hackers

From Philip Warner
Subject Cascade delete views?
Date
Msg-id 3.0.5.32.20000919135950.02448100@mail.rhyme.com.au
Whole thread Raw
In response to Re: Re: pg_dump tries to do too much per query  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: Cascade delete views?
Re: Cascade delete views?
List pgsql-hackers
Doing the following:
   create table test (f1 int);   create view v_test as select f1+1 as f11 from test;   drop table test;

then selecting from the view results in:
   ERROR:  Relation 'test' does not exist

which is fine.

Then I try:
   create table test (f1 int);   select * from v_test;

and I get:
   ERROR:  has_subclass: Relation 19417 not found

which not very helpful for the person who does not know the history, and
leads me to believe that there may be a few issues here. 

Should a 'DROP TABLE' drop the views, fail, or be recoverable from by
recreating the table?


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Constant propagation and similar issues
Next
From: Jeff MacDonald
Date:
Subject: ordbms - postgresql errata