Re: CREATE AGGREGATE disallows STYPE = internal

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: CREATE AGGREGATE disallows STYPE = internal
Date: 2008-11-14 15:09:34
Message-ID: 25790.1226675374@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
> Does that mean that it's possible to use as STYPE pointer to complex C-structure
> with internal pointers?

That's exactly what array_agg is doing. You have to be careful about
which context you keep the data in ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-11-14 15:12:52 Re: CREATE AGGREGATE disallows STYPE = internal
Previous Message Robert Haas 2008-11-14 14:40:09 Re: CREATE AGGREGATE disallows STYPE = internal