Re: Allow non-superuser to cancel superuser tasks.

x4mmm@yandex-team.ru

From: "Andrey M. Borodin" <x4mmm@yandex-team.ru>
To: "Leung, Anthony" <antholeu@amazon.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, Kirill Reshke <reshkekirill@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Michael Paquier <michael@paquier.xyz>
Date: 2024-04-05T05:26:58Z
Lists: pgsql-hackers

> On 5 Apr 2024, at 05:03, Leung, Anthony <antholeu@amazon.com> wrote:
> 
> Adding tap test for pg_signal_autovacuum using injection points as a separate patch. I also made a minor change on the original patch.

The test looks good, but:
1. remove references to passcheck :)
2. detach injection point when it's not needed anymore

Thanks!


Best regards, Andrey Borodin.


Commits

  1. Look up backend type in pg_signal_backend() more cheaply.

  2. Add tap test for pg_signal_autovacuum role

  3. Introduce pg_signal_autovacuum_worker.

  4. Add a slot synchronization function.

  5. Ban role pg_signal_backend from more superuser backend types.