have the same name as the containing shared library --- as best I can
tell, the compiler internally creates a function of that name, and does
not warn you about the conflict. Fix buildfarm failure in back branches
by renaming tsearch() trigger function at the C level.
--Trigger
CREATE FUNCTION tsearch()
RETURNS trigger
-AS 'MODULE_PATHNAME'
+AS 'MODULE_PATHNAME', 'tsearch_trigger'
LANGUAGE 'C';
--GiST
PG_FUNCTION_INFO_V1(txt2txtidx);
Datum txt2txtidx(PG_FUNCTION_ARGS);
-PG_FUNCTION_INFO_V1(tsearch);
-Datum tsearch(PG_FUNCTION_ARGS);
+PG_FUNCTION_INFO_V1(tsearch_trigger);
+Datum tsearch_trigger(PG_FUNCTION_ARGS);
PG_FUNCTION_INFO_V1(txtidxsize);
Datum txtidxsize(PG_FUNCTION_ARGS);
* Trigger
*/
Datum
-tsearch(PG_FUNCTION_ARGS)
+tsearch_trigger(PG_FUNCTION_ARGS)
{
TriggerData *trigdata;
Trigger *trigger;