Re: btree_gist, gint4_union - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: btree_gist, gint4_union
Date
Msg-id 3E6323A7.3020506@stack.net
Whole thread Raw
In response to btree_gist, gint4_union  (Itai Zukerman <zukerman@math-hat.com>)
List 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@stack.net




pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Yet another open-source benchmark
Next
From: Teodor Sigaev
Date:
Subject: Re: [SQL] OffsetNumber, picksplit, and GiST