From eb0393f24e9ba5690a3478a86bacc5d54a36d34b Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Thu, 22 Aug 2024 22:26:01 +0300 Subject: [PATCH] Allow neon_superuser to create event triggers --- src/backend/commands/event_trigger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/commands/event_trigger.c b/src/backend/commands/event_trigger.c index 9c31c9e7637..b9a401a04f1 100644 --- a/src/backend/commands/event_trigger.c +++ b/src/backend/commands/event_trigger.c @@ -119,7 +119,7 @@ CreateEventTrigger(CreateEventTrigStmt *stmt) * this, but there are obvious privilege escalation risks which would have * to somehow be plugged first. */ - if (!superuser()) + if (!superuser() && !is_neon_superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), errmsg("permission denied to create event trigger \"%s\"",