X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 70428474E4F for ; Wed, 26 Feb 2003 14:05:27 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 09857-01 for ; Wed, 26 Feb 2003 14:05:16 -0500 (EST) Received: from debbie2.questionmarket.com (debbie2.questionmarket.com [64.7.7.170]) by postgresql.org (Postfix) with ESMTP id CA05E474E42 for ; Wed, 26 Feb 2003 14:05:16 -0500 (EST) Received: from pip.dynlog.com (unknown [192.168.1.12]) by debbie2.questionmarket.com (Postfix) with SMTP id BDA0A87E8 for ; Wed, 26 Feb 2003 14:05:18 -0500 (EST) Received: (nullmailer pid 22126 invoked by uid 1000); Wed, 26 Feb 2003 19:05:17 -0000 Cc: pgsql-sql@postgresql.org Subject: btree_gist, gint4_union From: Itai Zukerman Date: Wed, 26 Feb 2003 14:05:17 -0500 In-Reply-To: <200302261025.00360.josh@agliodbs.com> (Josh Berkus's message of "Wed, 26 Feb 2003 10:25:00 -0800") Message-ID: <8765r6dfrm.fsf_-_@pip.dynamiclogic.com> User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030226103220.6875cee9.gry@ll.mit.edu> <200302261025.00360.josh@agliodbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/588 X-Sequence-Number: 11986 In contrib/btree_gist/ I see: CREATE FUNCTION gint4_union(bytea, internal) RETURNS int4 AS 'MODULE_PATHNAME' LANGUAGE 'C'; but gint4_union does this: INT4KEY *out = palloc(sizeof(INT4KEY)); [...] PG_RETURN_POINTER(out); Is the int4 return type declared above a bug? -- Itai Zukerman