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 Jan 9, 2024
1 parent 4083325 commit 191db8c
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 191db8c

Please sign in to comment.