Re: [HACKERS] Monitoring roles patch

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] Monitoring roles patch
Дата
Msg-id c99cde7f-0aa7-ebaa-b9f4-ee75522554a4@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Monitoring roles patch  (Dave Page <dpage@pgadmin.org>)
Ответы Re: [HACKERS] Monitoring roles patch  (Stephen Frost <sfrost@snowman.net>)
Re: [HACKERS] Monitoring roles patch  (Dave Page <dpage@pgadmin.org>)
Список pgsql-hackers
On 3/22/17 07:48, Dave Page wrote:
> With the patch, complex monitoring systems can easily be setup with
> something like:
> 
> CREATE ROLE monitoring_user LOGIN;
> GRANT pg_monitor TO monitoring_role;

That assumes that we have thought of all the ways in which people might
want to monitor things.

If we do it via GRANTs instead, then users can easily extend it.

If we instead change the hardcoded superuser checks to hardcoded
some-other-role checks, then the whole system instantly becomes unusable
the moment someone wants to monitor something we haven't thought of.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [HACKERS] Supporting huge pages on Windows
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] increasing the default WAL segment size