Re: problem when optimizing the window aggregation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem when optimizing the window aggregation
Дата
Msg-id 1318.1345600033@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem when optimizing the window aggregation  ("Wang, Chaoyong" <Chaoyong.Wang@emc.com>)
Ответы Re: problem when optimizing the window aggregation
Список pgsql-hackers
"Wang, Chaoyong" <Chaoyong.Wang@emc.com> writes:
> I used the function datumCopy as following:

> peraggstate->transValue = datumCopy(peraggstate->tempTransValue,
> peraggstate->transtypeByVal, peraggstate->transtypeLen);

You need to guard that with an is-null check, because datumCopy isn't
designed to cope with null values.  (Which is historical, I guess, but
we're not likely to change it now.)  If you look around you will find
plenty of examples of this coding pattern.
        regards, tom lane



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: multi-master pgbench?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: multi-master pgbench?