From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Itai Zukerman <zukerman@math-hat.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: btree_gist, gint4_union
Date: Mon, 17 Mar 2003 14:59:46 -0500 (EST)
Message-ID: <200303171959.h2HJxkN20021@candle.pha.pa.us> (raw)
In-Reply-To: <8765r6dfrm.fsf_-_@pip.dynamiclogic.com>
I am confused by your question. It seems it is declared as returning an
int.
---------------------------------------------------------------------------
Itai Zukerman wrote:
> 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 <http://www.math-hat.com/~zukerman/;
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
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: pgman@candle.pha.pa.us, zukerman@math-hat.com
Subject: Re: btree_gist, gint4_union
In-Reply-To: <200303171959.h2HJxkN20021@candle.pha.pa.us>
* 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