Skip to content

Commit

Permalink
PG-1071: Execute tde event triggers always, even on replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
dutow committed Oct 9, 2024
1 parent 3e4c889 commit 7273835
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pg_tde--1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ DO $$
CREATE EVENT TRIGGER pg_tde_trigger_create_index
ON ddl_command_start
EXECUTE FUNCTION pg_tde_ddl_command_start_capture();
ALTER EVENT TRIGGER pg_tde_trigger_create_index ENABLE ALWAYS;

CREATE EVENT TRIGGER pg_tde_trigger_create_index_2
ON ddl_command_end
EXECUTE FUNCTION pg_tde_ddl_command_end_capture();
ALTER EVENT TRIGGER pg_tde_trigger_create_index_2 ENABLE ALWAYS;
EXCEPTION WHEN OTHERS THEN
NULL;
END;
Expand Down

0 comments on commit 7273835

Please sign in to comment.