Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().
Дата
Msg-id YXjScrEwVMW69rSF@paquier.xyz
обсуждение исходный текст
Ответ на pgsql: Allow GRANT on pg_log_backend_memory_contexts().  (Jeff Davis <jdavis@postgresql.org>)
Ответы Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-committers
On Tue, Oct 26, 2021 at 08:41:11PM +0000, Jeff Davis wrote:
> Allow GRANT on pg_log_backend_memory_contexts().
>
> Remove superuser check, allowing any user granted permissions on
> pg_log_backend_memory_contexts() to log the memory contexts of any
> backend.
>
> Note that this could allow a privileged non-superuser to log the
> memory contexts of a superuser backend, but as discussed, that does
> not seem to be a problem.

         but will not be sent to the client regardless of
         <xref linkend="guc-client-min-messages"/>.
-        Only superusers can request to log the memory contexts.
        </para></entry>
I don't think that the documentation part of this commit is correct.
This sentence should have been changed to something like the
following:
"This function is restricted to superusers by default, but other users
can be granted EXECUTE to run the function."

Thanks,
--
Michael

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Allow publishing the tables of schema.
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().