Re: [SQL] btree_gist, gint4_union

2003-03-17 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I am confused by your question. It seems it is declared as returning an > int. I suspect that all of the GiST union methods should be declared to return 'internal', but Oleg or Teodor would probably know better. regards, tom lan

[SQL] btree_gist, gint4_union

2003-02-26 Thread Itai Zukerman
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 Zuker