Re: Aggregate from CASE WHEN...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ioannis Anagnostopoulos <ioannis(at)anatec(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Aggregate from CASE WHEN...
Date: 2012-07-08 22:54:32
Message-ID: 17734.1341788072@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Ioannis Anagnostopoulos <ioannis(at)anatec(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Ioannis Anagnostopoulos 2012-07-08 22:56:07 Re: Aggregate from CASE WHEN...
Previous Message Ioannis Anagnostopoulos 2012-07-08 22:35:17 Re: Aggregate from CASE WHEN...