diff --git a/sql/maintenance_utils.sql b/sql/maintenance_utils.sql index 8642b1c57d0..8d0ef51d52d 100644 --- a/sql/maintenance_utils.sql +++ b/sql/maintenance_utils.sql @@ -124,12 +124,12 @@ $$ LANGUAGE plpgsql; -- with the extension. -- -- This is intended for internal usage and interface might change. -CREATE FUNCTION _timescaledb_functions.makeaclitem(regrole, regrole, text, bool) +CREATE OR REPLACE FUNCTION _timescaledb_functions.makeaclitem(regrole, regrole, text, bool) RETURNS AclItem AS '@MODULE_PATHNAME@', 'ts_makeaclitem' LANGUAGE C STABLE PARALLEL SAFE STRICT; -- Repair relation ACL by removing roles that do not exist in pg_authid. -CREATE PROCEDURE _timescaledb_functions.repair_relation_acls() +CREATE OR REPLACE PROCEDURE _timescaledb_functions.repair_relation_acls() LANGUAGE SQL AS $$ WITH badrels AS ( diff --git a/sql/updates/reverse-dev.sql b/sql/updates/reverse-dev.sql index 8b137891791..92ad16e723a 100644 --- a/sql/updates/reverse-dev.sql +++ b/sql/updates/reverse-dev.sql @@ -1 +1,3 @@ - +-- Manually drop the following functions / procedures since 'OR REPLACE' is missing in 2.13.0 +DROP PROCEDURE IF EXISTS _timescaledb_functions.repair_relation_acls(); +DROP FUNCTION IF EXISTS _timescaledb_functions.makeaclitem(regrole, regrole, text, bool);