]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
It appears that Darwin (OS X) does not cope well with C functions that
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jul 2005 21:37:23 +0000 (21:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jul 2005 21:37:23 +0000 (21:37 +0000)
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.

contrib/tsearch/tsearch.sql.in
contrib/tsearch/txtidx.c

index b247e2327614c9fb034acdb8be2d35b31c384dfc..dda95ba2e7de2ecb5d347beaf98980564e2fb874 100644 (file)
@@ -145,7 +145,7 @@ CREATE OPERATOR ~# (
 --Trigger
 CREATE FUNCTION tsearch()
 RETURNS trigger
-AS 'MODULE_PATHNAME'
+AS 'MODULE_PATHNAME', 'tsearch_trigger'
 LANGUAGE 'C';
 
 --GiST
index deab0bcd1de97614786af9ef7f9072d9713afa29..61b29d19cf78badf84399d445285bd7a7acb8a94 100644 (file)
@@ -33,8 +33,8 @@ Datum         txtidx_out(PG_FUNCTION_ARGS);
 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);
@@ -519,7 +519,7 @@ txt2txtidx(PG_FUNCTION_ARGS)
  * Trigger
  */
 Datum
-tsearch(PG_FUNCTION_ARGS)
+tsearch_trigger(PG_FUNCTION_ARGS)
 {
        TriggerData *trigdata;
        Trigger    *trigger;