| От | Tom Lane |
|---|---|
| Тема | Re: Deprecating non-select rules (was Re: Last gasp) |
| Дата | |
| Msg-id | 28765.1334065605@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Deprecating non-select rules (was Re: Last gasp) (Andres Freund <andres@2ndquadrant.com>) |
| Список | pgsql-hackers |
Andres Freund <andres@2ndquadrant.com> writes:
> Here is what I know and what comes to my mind right now:
> 1. anything but INSTEAD rules are unsafe
How so? I agree that volatile functions are problematic, but unless
there's one of those in the picture I think rules work pretty much as
documented.
> 3. the snapshots behaviour of an expanded statement is a bit confusing if it
> contains multiple statements which causes problems with the rather frequent
> attempts to build rules with upsert'is behaviour
Again, not sure what you're complaining about here.
> A very trivial, seemingly innocuous, but totally broken usage of rules:
The problem illustrated here is all down to nextval() being volatile,
no?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера