Re: btree_gist, gint4_union

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Itai Zukerman <zukerman(at)math-hat(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: btree_gist, gint4_union
Date: 2003-03-17 19:59:46
Message-ID: 200303171959.h2HJxkN20021@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message John Guthrie 2003-03-17 20:21:29 upcasting multiplication in a query
Previous Message Tom Lane 2003-03-17 19:48:33 Re: parse error when calling function in plpgsql