Re: Cascade delete views?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Cascade delete views?
Date: 2000-09-20 17:38:33
Message-ID: Pine.LNX.4.21.0009192230060.362-100000@peter
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner writes:

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

If you peak into the standard, all DROP commands have a trailing
RESTRICT/CASCADE (mandatory, btw.), which will tell what to do. But it's
extremely hard to implement and keep up to date.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-09-20 17:41:50 Re: -S is missing in postgresql.conf?
Previous Message Peter Eisentraut 2000-09-20 17:38:19 Improved regression test driver