Re: Wrong security context for deferred triggers?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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-11-04 17:25:51
Message-ID: 51386e72c47d922ef68eaa67451a52dc3f569843.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2024-11-04 at 11:22 -0500, Tom Lane wrote:
> The cfbot points out a minor problem [1]:
>
> create role groot;
> +WARNING: roles created by regression test cases should have names starting with "regress_"
> create role outis;
> +WARNING: roles created by regression test cases should have names starting with "regress_"
> create function whoami() returns trigger language plpgsql
>
> (You can compile with -DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS
> to enable these warnings locally.)
>
> regards, tom lane
>
> [1] http://cfbot.cputube.org/highlights/all.html#4888

Thanks for the hint, the attached v4 patch fixes that problem.

Yours,
Laurenz Albe

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ranier Vilela 2024-11-04 17:38:54 Re: define pg_structiszero(addr, s, r)
Previous Message Bertrand Drouvot 2024-11-04 17:17:54 Re: define pg_structiszero(addr, s, r)