Re: Aggregates with internal state type? - Mailing list pgsql-sql

From Markus Schaber
Subject Re: Aggregates with internal state type?
Date
Msg-id 45087BA7.2050908@logix-tt.com
Whole thread Raw
In response to Re: Aggregates with internal state type?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi, Tom,

Tom Lane wrote:

>> Ah, I see. So there's no possibility to pass some void* kind of
>> intermediate data, I have to craft at least a dummy PostgreSQL datatype
>> for it.
> 
> Right.  My first thought would be to use bytea as the declared type ---
> doesn't put much burden on you except to have a length word at the front.

Yes, that will work for C, and I'll have a look into it. Good idea.

I had the secret hope that I'd come up with a scheme that also works
using pljava, avoiding the serialization and reserialization of java
objects. But I'm afraid that this gets more difficult.

Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Aggregates with internal state type?
Next
From: Javanesevn
Date:
Subject: How to delete multiple records