Skip site navigation (1) Skip section navigation (2)

Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle

From: Bernd Helmle <mailings(at)oopsware(dot)de>
To: Josh Berkus <josh(at)agliodbs(dot)com>, Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Guillaume Smet <guillaume(dot)smet(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Date: 2009-01-27 10:31:26
Message-ID: 99153D6FEC51C195437B57B7@teje (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
--On Montag, Januar 26, 2009 20:03:41 -0800 Josh Berkus <josh(at)agliodbs(dot)com> 
wrote:

> Jaime, Bernd,
>
>> having said that, i don't think that inventing new syntax is the way
>> to go... a reloption seems better (thinking a little more, it could be
>> a problem if the user changes the reloptions of an already created
>> view)
>
> There's also the issue with backup/restore: we need some kind of syntax
> for restoring a read-only view which doesn't depend on command ordering.
> So we need a ALTER VIEW SET READ ONLY or similar.
>

Hence my proposal with

CREATE [OR REPLACE] [READ ONLY|UPDATABLE] VIEW

This can easily be extended to ALTER VIEW SET [READ ONLY|UPDATABLE]. 
Besides other issues already mentioned, this looks more logical to me, 
since this is going to change the behavior of a view completely.


-- 
  Thanks

                    Bernd

In response to

pgsql-hackers by date

Next:From: Rick GiggerDate: 2009-01-27 10:33:08
Subject: Re: 8.4 release planning
Previous:From: KaiGai KoheiDate: 2009-01-27 10:12:06
Subject: Re: SE-PostgreSQL Updated Revision (r1460)

pgsql-committers by date

Next:From: Peter EisentrautDate: 2009-01-27 11:59:34
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Previous:From: Josh BerkusDate: 2009-01-27 04:03:41
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group