-CREATE OR REPLACE FUNCTION pgpool_recovery(text, text, text, text)
+CREATE OR REPLACE FUNCTION pgpool_recovery(IN script_name text,
+          IN remote_host text,
+          IN remote_data_directory text,
+          IN primary_port text,
+          IN remote_node integer,
+          IN remote_port text)
+RETURNS bool
+AS 'MODULE_PATHNAME', 'pgpool_recovery'
+LANGUAGE C STRICT;
+
+CREATE OR REPLACE FUNCTION pgpool_recovery(IN script_name text,
+          IN remote_host text,
+          IN remote_data_directory text,
+          IN primary_port text,
+          IN remote_node integer)
+RETURNS bool
+AS 'MODULE_PATHNAME', 'pgpool_recovery'
+LANGUAGE C STRICT;
+
+CREATE OR REPLACE FUNCTION pgpool_recovery(IN script_name text,
+          IN remote_host text,
+          IN remote_data_directory text,
+          IN primary_port text)
+RETURNS bool
+AS 'MODULE_PATHNAME', 'pgpool_recovery'
+LANGUAGE C STRICT;
+
+CREATE OR REPLACE FUNCTION pgpool_recovery(IN script_name text,
+          IN remote_host text,
+          IN remote_data_directory text)
 RETURNS bool
 AS 'MODULE_PATHNAME', 'pgpool_recovery'
 LANGUAGE C STRICT;