btree_gist, gint4_union - Mailing list pgsql-sql

From Itai Zukerman
Subject btree_gist, gint4_union
Date
Msg-id 8765r6dfrm.fsf_-_@pip.dynamiclogic.com
Whole thread Raw
In response to Re: Design Q.:logic in app or db?  (Josh Berkus <josh@agliodbs.com>)
Responses Re: btree_gist, gint4_union  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-sql
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/>


pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Design Q.:logic in app or db?
Next
From: Tilo Schwarz
Date:
Subject: Re: Relation "pg_relcheck"