Re: Aggregate from CASE WHEN...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Aggregate from CASE WHEN...
Дата
Msg-id 17734.1341788072@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Aggregate from CASE WHEN...  (Ioannis Anagnostopoulos <ioannis@anatec.com>)
Ответы Re: Aggregate from CASE WHEN...
Список pgsql-novice
Ioannis Anagnostopoulos <ioannis@anatec.com> writes:
> Now, for the final step of it. You said that SFUNC =
> array_append form the example array_accum must be delclared "strict".
> May I ask how as I am lost?

You would need to create a new SQL function declaration, referencing the
same underlying C code but marked strict.  Then make a new aggregate
referencing that as the sfunc instead of the original.

            regards, tom lane

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

Предыдущее
От: Ioannis Anagnostopoulos
Дата:
Сообщение: Re: Aggregate from CASE WHEN...
Следующее
От: Ioannis Anagnostopoulos
Дата:
Сообщение: Re: Aggregate from CASE WHEN...