Skip to content

Commit

Permalink
Fix makeaclitem function creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jnidzwetzki committed Nov 29, 2023
1 parent 3b59a8a commit 65f6815
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sql/maintenance_utils.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 3 additions & 1 deletion sql/updates/reverse-dev.sql
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 65f6815

Please sign in to comment.