| От | Tom Lane |
|---|---|
| Тема | Re: Rewritten queries |
| Дата | |
| Msg-id | 22066.1104176545@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Rewritten queries (Jaime Casanova <systemguards@yahoo.com>) |
| Ответы |
Re: Rewritten queries
|
| Список | pgsql-novice |
Jaime Casanova <systemguards@yahoo.com> writes:
> What version of postgres are u using?
> I don't see that particular behavior in coalesce.
> someone knows if this is the behavior in any older
> version of pg?
Yes. Since about 7.4 COALESCE is a first-class expression node type,
but before that the parser expanded it into a CASE construct.
The CASE implementation is lacking in that it may evaluate the arguments
more than once, which could be wrong if they are volatile values.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера