X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 489C19FA18C for ; Wed, 13 Sep 2006 18:44:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 99475-10 for ; Wed, 13 Sep 2006 18:44:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id C129F9FA17D for ; Wed, 13 Sep 2006 18:44:11 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D1F34.dip0.t-ipconnect.de [84.157.31.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id B81A465978 for ; Wed, 13 Sep 2006 23:46:24 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 8EB651809DD31 for ; Wed, 13 Sep 2006 23:44:07 +0200 (CEST) Message-ID: <45087BA7.2050908@logix-tt.com> Date: Wed, 13 Sep 2006 23:44:07 +0200 From: Markus Schaber Reply-To: PostgreSQL SQL List Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: PostgreSQL SQL List Subject: Re: Aggregates with internal state type? References: <45086B40.3000200@logix-tt.com> <16722.1158181987@sss.pgh.pa.us> <450875FC.9040907@logix-tt.com> <17004.1158182717@sss.pgh.pa.us> In-Reply-To: <17004.1158182717@sss.pgh.pa.us> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.171 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/94 X-Sequence-Number: 26305 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