Re: btree_gist, gint4_union

From: Teodor Sigaev <teodor(at)stack(dot)net>
To: Itai Zukerman <zukerman(at)math-hat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: btree_gist, gint4_union
Date: 2003-03-03 09:43:03
Message-ID: 3E6323A7.3020506@stack.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

Must be 'internal'. It's not a bug :) because this function is GiST interface
member
and itsn't any nessesarity to call it by hand.

--
Teodor Sigaev
teodor(at)stack(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2003-03-03 09:46:00 Re: [SQL] OffsetNumber, picksplit, and GiST
Previous Message Christopher Kings-Lynne 2003-03-03 07:06:02 Off topic - was Re: ALTER SEQUENCE