Re: Possible enhancement : replace view ?

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Emmanuel Charpentier <charpent(at)bacbuc(dot)dyndns(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Possible enhancement : replace view ?
Date: 2002-08-13 21:46:46
Message-ID: 1029275206.4742.106.camel@rh72.home.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2002-08-14 at 04:23, Emmanuel Charpentier wrote:
> Hannu Krosing wrote:
> >
> > I'm trying to propose a scenario where
> >
> > 1. The SELECT clause defining the view is preserved
> >
> > 2. DROP of undrlying table/column will _not_ drop the view, but just
> > mark it dirty
> >
> > 3. Using the view checks for the dirty flag and if it is set tries to
> > recreate the view from its plaintext definition.
>
> I might be dense, but why not try to recreate it directly after the
> table/column modification ?

If it is a DROP TABLE/CREATE TABLE sequence you have no idea that you
have to recreate a view.

-----------
Hannu

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-13 22:22:30 Re: Open 7.3 items
Previous Message Hannu Krosing 2002-08-13 21:45:20 Re: Temporary Views