Re: Allow non-superuser to cancel superuser tasks. - Mailing list pgsql-hackers

From Leung, Anthony
Subject Re: Allow non-superuser to cancel superuser tasks.
Date
Msg-id 34D6BD26-CE3D-44D8-9B93-08E7CF114C27@amazon.com
Whole thread Raw
In response to Re: Allow non-superuser to cancel superuser tasks.  ("Leung, Anthony" <antholeu@amazon.com>)
List pgsql-hackers
Update - the condition should be && 

    if (pgstat_get_backend_type(proc->backendId) == B_AUTOVAC_WORKER)
    {
        if (!has_privs_of_role(GetUserId(), ROLE_PG_SIGNAL_AUTOVACUUM) && !superuser())
            return SIGNAL_BACKEND_NOAUTOVACUUM;
    }

Thanks
--
Anthony Leung
Amazon Web Services: https://aws.amazon.com


pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Improve eviction algorithm in ReorderBuffer
Next
From: Michael Paquier
Date:
Subject: Re: Silence Meson warning on HEAD