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