Thanks Tom,
Forgive me if I'm being dense, but could you explain why
int4_sum(bigint,int) must not be strict, but
int4_avg_accum(bytea, int) can be strict?
It seems that both of them have transition datatypes that are different from
the input.
-Caleb
On 1/28/08 7:31 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Caleb Welton <cwelton(at)greenplum(dot)com> writes:
>> Is there any reason that int2_sum, int4_sum, and int8_sum are not marked as
>> being strict?
>
> They wouldn't work otherwise, because the transition datatypes aren't
> the same as the inputs.
>
> regards, tom lane