Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().
Дата
Msg-id CALj2ACVieMjiyB0V0ajntr2ZpcgVxC5hSCbvXdqhC5FBkyDrqw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
On Mon, Oct 25, 2021 at 9:43 AM Kyotaro Horiguchi
<horikyota.ntt@gmail.com> wrote:
> > Do you think pg_signal_backend is the wrong group to allow usage of
> > pg_log_backend_memory_contexts()? Alternatively, it could simply not
>
> Yes. I think it would be danger that who is allowed to dump memory
> context into log files by granting pg_signal_backend also can
> terminate other backends.
>
> > pg_log_backend_memory_contexts()? Alternatively, it could simply not
> > GRANT anything, and leave that up to the administrator to choose who
> > can use it.
>
> *I* prefer that. I'm not sure I'm the only one to think so, though..

How about we have a separate predefined role for the functions that
deal with server logs? I'm not sure if Mark Dilger's patch on new
predefined roles has one, if not, how about something like
pg_write_server_log/pg_manage_server_log/some other name?

If not with a new predefined role, how about expanding the scope of
existing pg_write_server_files role?

Regards,
Bharath Rupireddy.



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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().
Следующее
От: Amul Sul
Дата:
Сообщение: Re: prevent immature WAL streaming