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   |/

Reply via email to