Re: Using a pointer as statetype for an aggregate - Mailing list pgsql-general

From Tom Lane
Subject Re: Using a pointer as statetype for an aggregate
Date
Msg-id 28883.1146581590@sss.pgh.pa.us
Whole thread Raw
In response to Using a pointer as statetype for an aggregate  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: Using a pointer as statetype for an aggregate  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-general
"Florian G. Pflug" <fgp@phlo.org> writes:
> why doesn't postgres allow "internal" as statetype?

Because it's not a type.  If it were, it certainly wouldn't have the
semantics you seem to hope for (ie, "pass by reference type but don't
actually try to copy the bits")

            regards, tom lane

pgsql-general by date:

Previous
From: "John D. Burger"
Date:
Subject: Re: How would I write this query...
Next
From: Markus Schiltknecht
Date:
Subject: convert LO to BYTEA