Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc: Document that MAINTAIN privilege allows statistics manipulation functions. master github/master
authorFujii Masao <fujii@postgresql.org>
Thu, 12 Jun 2025 05:53:32 +0000 (14:53 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 12 Jun 2025 05:53:32 +0000 (14:53 +0900)
Database object statistics manipulation functions were introduced
in PostgreSQL 18 and are permitted under the MAINTAIN privilege.
However, the documentation previously did not mention these functions
in the list of allowed operations.

This commit updates the MAINTAIN privilege documentation to
explicitly include statistics manipulation functions, clarifying
what the privilege covers.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Robert Treat <rob@xzilla.net>
Discussion: https://postgr.es/m/7c7e1ad5-fdf9-486f-bc63-40ac99b0461d@oss.nttdata.com

doc/src/sgml/ddl.sgml

index fcd1cb85352fcf5855685e6eda5377b3e5522abb..96936bcd3ae3eca51b12cacdba6f0e1367248cf3 100644 (file)
@@ -2223,8 +2223,9 @@ REVOKE ALL ON accounts FROM PUBLIC;
      <para>
       Allows <command>VACUUM</command>, <command>ANALYZE</command>,
       <command>CLUSTER</command>, <command>REFRESH MATERIALIZED VIEW</command>,
      <para>
       Allows <command>VACUUM</command>, <command>ANALYZE</command>,
       <command>CLUSTER</command>, <command>REFRESH MATERIALIZED VIEW</command>,
-      <command>REINDEX</command>, and <command>LOCK TABLE</command> on a
-      relation.
+      <command>REINDEX</command>, <command>LOCK TABLE</command>,
+      and database object statistics manipulation functions
+      (see <xref linkend="functions-admin-statsmod"/>) on a relation.
      </para>
     </listitem>
    </varlistentry>
      </para>
     </listitem>
    </varlistentry>