Re: CREATE AGGREGATE disallows STYPE = internal - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CREATE AGGREGATE disallows STYPE = internal
Date
Msg-id 25790.1226675374@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE AGGREGATE disallows STYPE = internal  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Teodor Sigaev <teodor@sigaev.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


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Simple postgresql.conf wizard
Next
From: Tom Lane
Date:
Subject: Re: CREATE AGGREGATE disallows STYPE = internal