From 7750fefdb2b81e0ee09c523d0a21cbd37edaf4b2 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Mon, 25 Sep 2023 12:41:49 +0200 Subject: Add GUC for temporarily disabling event triggers In order to troubleshoot misbehaving or buggy event triggers, the documented advice is to enter single-user mode. In an attempt to reduce the number of situations where single-user mode is required (or even recommended) for non-extraordinary maintenance, this GUC allows to temporarily suspend event triggers. This was originally extracted from a larger patchset which aimed at supporting event triggers on login events. Reviewed-by: Ted Yu Reviewed-by: Mikhail Gribkov Reviewed-by: Justin Pryzby Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/9140106E-F9BF-4D85-8FC8-F2D3C094A6D9@yesql.se Discussion: https://postgr.es/m/0d46d29f-4558-3af9-9c85-7774e14a7709@postgrespro.ru --- doc/src/sgml/ref/create_event_trigger.sgml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc/src/sgml/ref') diff --git a/doc/src/sgml/ref/create_event_trigger.sgml b/doc/src/sgml/ref/create_event_trigger.sgml index 22c81191982..ef12cfa20d4 100644 --- a/doc/src/sgml/ref/create_event_trigger.sgml +++ b/doc/src/sgml/ref/create_event_trigger.sgml @@ -121,9 +121,12 @@ CREATE EVENT TRIGGER name Event triggers are disabled in single-user mode (see ). If an erroneous event trigger disables the - database so much that you can't even drop the trigger, restart in - single-user mode and you'll be able to do that. + linkend="app-postgres"/>) as well as when + is set to false. + If an erroneous event trigger disables the database so much that you can't + even drop the trigger, restart with + set to false to temporarily disable event triggers, or + in single-user mode, and you'll be able to do that. -- cgit v1.2.3