Cascade delete views?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Cascade delete views?
Date: 2000-09-19 03:59:50
Message-ID: 3.0.5.32.20000919135950.02448100@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff MacDonald 2000-09-19 04:35:42 ordbms - postgresql errata
Previous Message Jonathan Stanford 2000-09-19 01:36:32 Re: Odd behaviour - *possible* ODBC bug?