Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group