Re: Rewritten queries

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Rewritten queries
Дата
Msg-id 20041227194845.86489.qmail@web50008.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Rewritten queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
 --- Tom Lane <tgl@sss.pgh.pa.us> escribió:
> 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
>

So, i think the recommended suggestion will be to
upgrade to a newer version. Maybe you want to wait
until 8 is out.

regards,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rewritten queries
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Extracting data where a column is max