Cascade delete views?
От | Philip Warner |
---|---|
Тема | Cascade delete views? |
Дата | |
Msg-id | 3.0.5.32.20000919135950.02448100@mail.rhyme.com.au обсуждение исходный текст |
Ответ на | Re: Re: pg_dump tries to do too much per query (Philip Warner <pjw@rhyme.com.au>) |
Ответы |
Re: Cascade delete views?
Re: Cascade delete views? |
Список | 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 по дате отправления: