Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Date
Msg-id 497E37C0.1070505@agliodbs.com
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Bruce Momjian wrote:
> Tom Lane wrote:
>> Bernd Helmle <mailings@oopsware.de> writes:
>>> Or what about
>>> CREATE [OR REPLACE] [UPDATABLE] VIEW ... ?
>>> This looks closer to TEMP|TEMPORARY VIEW, which we already have.
>> But per spec, UPDATABLE should be the default (if not now, then
>> eventually).  Are you proposing
>>     CREATE [OR REPLACE] [[NOT] UPDATABLE] VIEW ...
>> ?  Seems confusing.

I'd frankly look at WITH, which is where we've historically stuck 
non-SQL extensions.

> BTW, how do we handle cases where the query cannot be updatable, e.g.
> aggregates?  Do we throw a warning?
> 

Error if "updatable" is specified, warning if not.

--Josh


pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Next
From: Joshua Brindle
Date:
Subject: Re: 8SEPostgres WAS: .4 release planning