Commit 0f539341 authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Clarify pgstattuple privileges information

The description has gotten a bit confusing over time, so rewrite the
paragraph a bit.
Reported-by: default avatarFeike Steenbergen <feikesteenbergen@gmail.com>
parent 7b6c0754
...@@ -13,12 +13,14 @@ ...@@ -13,12 +13,14 @@
</para> </para>
<para> <para>
As these functions return detailed page-level information, only the superuser Because these functions return detailed page-level information, access is
has EXECUTE privileges on them upon installation. After the functions have restricted by default. By default, only the
been installed, users may issue <command>GRANT</command> commands to change role <literal>pg_stat_scan_tables</literal> has <literal>EXECUTE</literal>
the privileges on the functions to allow non-superusers to execute them. Members privilege. Superusers of course bypass this restriction. After the
of the <literal>pg_stat_scan_tables</literal> role are granted access by default. See extension has been installed, users may issue <command>GRANT</command>
the description of the <xref linkend="sql-grant"> command for specifics. commands to change the privileges on the functions to allow others to
execute them. However, it might be preferable to add those users to
the <literal>pg_stat_scan_tables</literal> role instead.
</para> </para>
<sect2> <sect2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment