Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp committed Dec 13, 2022
1 parent 96575bb commit ee1dde8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sql/pgsodium--3.1.2--3.1.3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

CREATE OR REPLACE FUNCTION pgsodium.trg_mask_update()
RETURNS EVENT_TRIGGER AS
$$
DECLARE
r record;
BEGIN
IF (select bool_or(in_extension) FROM pg_event_trigger_ddl_commands()) THEN
RAISE NOTICE 'skipping pgsodium mask regeneration in extension';
RETURN;
END IF;
PERFORM @extschema@.update_masks();
END
$$
LANGUAGE plpgsql
SET search_path=''
;

0 comments on commit ee1dde8

Please sign in to comment.