diff --git a/repmgr--4.2--4.3.sql b/repmgr--4.2--4.3.sql index 96a09196..eebab6ba 100644 --- a/repmgr--4.2--4.3.sql +++ b/repmgr--4.2--4.3.sql @@ -1,17 +1,10 @@ -- complain if script is sourced in psql, rather than via CREATE EXTENSION -\echo Use "CREATE EXTENSION repmgr" to load this file. \quit +\echo Use "ALTER EXTENSION repmgr UPDATE" to load this file. \quit -CREATE FUNCTION set_upstream_last_seen() - RETURNS VOID - AS 'MODULE_PATHNAME', 'set_upstream_last_seen' - LANGUAGE C STRICT; +-- This script is intentionally empty and exists to skip the CREATE FUNCTION +-- commands contained in the 4.2--4.3 and 4.3--4.4 extension upgrade scripts, +-- which reference C functions which no longer exist in 5.3 and later. +-- +-- These functions will be explicitly created in the 5.2--5.3 extension +-- upgrade step with the correct C function references. -CREATE FUNCTION get_upstream_last_seen() - RETURNS INT - AS 'MODULE_PATHNAME', 'get_upstream_last_seen' - LANGUAGE C STRICT; - -CREATE FUNCTION get_wal_receiver_pid() - RETURNS INT - AS 'MODULE_PATHNAME', 'get_wal_receiver_pid' - LANGUAGE C STRICT; diff --git a/repmgr--4.3--4.4.sql b/repmgr--4.3--4.4.sql index 4b4b8f97..5acf7272 100644 --- a/repmgr--4.3--4.4.sql +++ b/repmgr--4.3--4.4.sql @@ -1,19 +1,9 @@ -- complain if script is sourced in psql, rather than via CREATE EXTENSION -\echo Use "CREATE EXTENSION repmgr" to load this file. \quit +\echo Use "ALTER EXTENSION repmgr UPDATE" to load this file. \quit -DROP FUNCTION set_upstream_last_seen(); - -CREATE FUNCTION set_upstream_last_seen(INT) - RETURNS VOID - AS 'MODULE_PATHNAME', 'set_upstream_last_seen' - LANGUAGE C STRICT; - -CREATE FUNCTION get_upstream_node_id() - RETURNS INT - AS 'MODULE_PATHNAME', 'get_upstream_node_id' - LANGUAGE C STRICT; - -CREATE FUNCTION set_upstream_node_id(INT) - RETURNS VOID - AS 'MODULE_PATHNAME', 'set_upstream_node_id' - LANGUAGE C STRICT; +-- This script is intentionally empty and exists to skip the CREATE FUNCTION +-- commands contained in the 4.3--4.4 extension upgrade script, which reference +-- C functions which no longer exist in 5.3 and later. +-- +-- These functions will be explicitly created in the 5.2--5.3 extension +-- upgrade step with the correct C function references.