From: Markus Schaber <schabi@logix-tt.com>
To: PostgreSQL SQL List <pgsql-sql@postgresql.org>
Subject: Re: Aggregates with internal state type?
Date: Wed, 13 Sep 2006 23:44:07 +0200
Message-ID: <45087BA7.2050908@logix-tt.com> (raw)
In-Reply-To: <17004.1158182717@sss.pgh.pa.us>
References: <45086B40.3000200@logix-tt.com>
<16722.1158181987@sss.pgh.pa.us>
<450875FC.9040907@logix-tt.com>
<17004.1158182717@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: schabi@logix-tt.com
Subject: Re: Aggregates with internal state type?
In-Reply-To: <45087BA7.2050908@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox