Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
В списке pgsql-hackers по дате отправления:
| От | Bernd Helmle |
|---|---|
| Тема | Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle |
| Дата | |
| Msg-id | 99153D6FEC51C195437B57B7@teje обсуждение исходный текст |
| Ответ на | Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle (Josh Berkus <josh@agliodbs.com>) |
| Список | pgsql-hackers |
--On Montag, Januar 26, 2009 20:03:41 -0800 Josh Berkus <josh@agliodbs.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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера