Re: Wrong security context for deferred triggers?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Wrong security context for deferred triggers?
Date: 2024-10-19 11:02:32
Message-ID: 6bca669972ef0d4a665fa83c5b751ab116324f8f.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 2024-10-19 at 06:17 +0200, Pavel Stehule wrote:
> Maybe we should document so the trigger is executed with the identity used by DML command always,
> when the trigger function has no SECURITY DEFINER flag?

Good idea. Version 3 has documentation.

Yours,
Laurenz Albe

Attachment Content-Type Size
v3-0001-Make-AFTER-triggers-run-with-the-correct-user.patch text/x-patch 10.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2024-10-19 11:55:58 Re: Make default subscription streaming option as Parallel
Previous Message jian he 2024-10-19 10:13:50 Re: New "raw" COPY format