Re: Allow non-superuser to cancel superuser tasks.

Поиск
Список
Период
Сортировка
От Leung, Anthony
Тема Re: Allow non-superuser to cancel superuser tasks.
Дата
Msg-id 34D6BD26-CE3D-44D8-9B93-08E7CF114C27@amazon.com
обсуждение исходный текст
Ответ на Re: Allow non-superuser to cancel superuser tasks.  ("Leung, Anthony" <antholeu@amazon.com>)
Список 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 по дате отправления:

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Improve eviction algorithm in ReorderBuffer
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Silence Meson warning on HEAD