summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-11-02 16:12:23 +0000
committerPeter Eisentraut2017-11-02 16:13:36 +0000
commit0f53934164d37682fd6a6d87d57008f9ca03e3d0 (patch)
tree08a1d5c56e52e00906475b6e961182870c8fd897
parent7b6c07547190f056b0464098bb5a2247129d7aa2 (diff)
doc: Clarify pgstattuple privileges information
The description has gotten a bit confusing over time, so rewrite the paragraph a bit. Reported-by: Feike Steenbergen <[email protected]>
-rw-r--r--doc/src/sgml/pgstattuple.sgml14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/src/sgml/pgstattuple.sgml b/doc/src/sgml/pgstattuple.sgml
index 611df9d0bfd..04a4423dc54 100644
--- a/doc/src/sgml/pgstattuple.sgml
+++ b/doc/src/sgml/pgstattuple.sgml
@@ -13,12 +13,14 @@
</para>
<para>
- As these functions return detailed page-level information, only the superuser
- has EXECUTE privileges on them upon installation. After the functions have
- been installed, users may issue <command>GRANT</command> commands to change
- the privileges on the functions to allow non-superusers to execute them. Members
- of the <literal>pg_stat_scan_tables</literal> role are granted access by default. See
- the description of the <xref linkend="sql-grant"> command for specifics.
+ Because these functions return detailed page-level information, access is
+ restricted by default. By default, only the
+ role <literal>pg_stat_scan_tables</literal> has <literal>EXECUTE</literal>
+ privilege. Superusers of course bypass this restriction. After the
+ extension has been installed, users may issue <command>GRANT</command>
+ 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>
<sect2>