Re: array_agg() NULL Handling

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: array_agg() NULL Handling
Дата
Msg-id 98DC2665-75D3-4B2F-BACA-7DEED9A0C118@kineticode.com
обсуждение исходный текст
Ответ на Re: array_agg() NULL Handling  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On Sep 1, 2010, at 11:52 AM, Pavel Stehule wrote:

>> regression=# create or replace function array_agg_transfn_strict(internal, anyelement) returns internal as
'array_agg_transfn'language internal immutable; 
>> CREATE FUNCTION
>> regression=# create aggregate array_agg_strict(anyelement) (stype = internal,
>> sfunc = array_agg_transfn_strict, finalfunc = array_agg_finalfn);
>> CREATE AGGREGATE
>> regression=# create or replace function array_agg_transfn_strict(internal, anyelement) returns internal as
'array_agg_transfn'language internal strict immutable; 
>> CREATE FUNCTION
>>
>
> nice dark trick :) -  but it doesn't work
>
> ERROR:  aggregate 16395 needs to have compatible input type and transition type
> postgres=#

I could use this trick now. Anyone got any bright ideas how to fix it?

Thanks,

David



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

Предыдущее
От: Josh Kupershmidt
Дата:
Сообщение: Re: I: About "Our CLUSTER implementation is pessimal" patch
Следующее
От: Andrew Dunstan
Дата:
Сообщение: missing tags