X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id C9DFA9FA18C for ; Wed, 13 Sep 2006 18:25:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 03396-07 for ; Wed, 13 Sep 2006 21:25:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1D81B9FA17D for ; Wed, 13 Sep 2006 18:25:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8DLPHQe017005; Wed, 13 Sep 2006 17:25:17 -0400 (EDT) To: Markus Schaber cc: PostgreSQL SQL List Subject: Re: Aggregates with internal state type? In-reply-to: <450875FC.9040907@logix-tt.com> References: <45086B40.3000200@logix-tt.com> <16722.1158181987@sss.pgh.pa.us> <450875FC.9040907@logix-tt.com> Comments: In-reply-to Markus Schaber message dated "Wed, 13 Sep 2006 23:19:56 +0200" Date: Wed, 13 Sep 2006 17:25:17 -0400 Message-ID: <17004.1158182717@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/93 X-Sequence-Number: 26304 Markus Schaber writes: > 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. regards, tom lane