--- Adjust this setting to control where the objects get created.
-SET search_path = public;
-
 /* ***********************************************
  * Administrative functions for PostgreSQL
  * *********************************************** */
 
 CREATE OR REPLACE FUNCTION pg_catalog.pg_file_rename(text, text)
 RETURNS bool
-AS 'SELECT pg_file_rename($1, $2, NULL); '
+AS 'SELECT pg_catalog.pg_file_rename($1, $2, NULL::pg_catalog.text);'
 LANGUAGE SQL VOLATILE STRICT;
 
 CREATE OR REPLACE FUNCTION pg_catalog.pg_file_unlink(text)
 
 CREATE OR REPLACE FUNCTION pg_catalog.pg_file_length(text)
 RETURNS bigint
-AS 'SELECT size FROM pg_stat_file($1)'
+AS 'SELECT size FROM pg_catalog.pg_stat_file($1)'
 LANGUAGE SQL VOLATILE STRICT;
 
 CREATE OR REPLACE FUNCTION pg_catalog.pg_logfile_rotate()
 RETURNS int4
 AS 'pg_rotate_logfile'
 LANGUAGE INTERNAL VOLATILE STRICT;
-
 
--- Adjust this setting to control where the objects get dropped.
-SET search_path = public;
-
 DROP FUNCTION pg_catalog.pg_file_write(text, text, bool) ;
 DROP FUNCTION pg_catalog.pg_file_rename(text, text, text) ;
 DROP FUNCTION pg_catalog.pg_file_rename(text, text) ;