diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-08-07 18:09:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-08-07 18:09:28 -0400 |
commit | ed6df2e0e39ceffef5d3099466bb077371f14443 (patch) | |
tree | 04e01f5cb5bf5995a44ea72c6e620763372b99a6 | |
parent | 26555cbd6e1443ea783717fd49b2ca1d55e4a015 (diff) |
Doc: document permissions required for ANALYZE.
VACUUM's reference page had this text, but ANALYZE's didn't. That's
a clear oversight given that section 5.7 explicitly delegates the
responsibility to define permissions requirements to the individual
commands' man pages.
Per gripe from Isaac Morland. Back-patch to all supported branches.
Discussion: https://postgr.es/m/CAMsGm5fp3oBUs-2iRfii0iEO=fZuJALVyM2zJLhNTjG34gpAVQ@mail.gmail.com
-rw-r--r-- | doc/src/sgml/ref/analyze.sgml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/analyze.sgml b/doc/src/sgml/ref/analyze.sgml index 10b3a9a6733..603c43cad0e 100644 --- a/doc/src/sgml/ref/analyze.sgml +++ b/doc/src/sgml/ref/analyze.sgml @@ -115,6 +115,16 @@ ANALYZE [ VERBOSE ] [ <replaceable class="parameter">table_and_columns</replacea <title>Notes</title> <para> + To analyze a table, one must ordinarily be the table's owner or a + superuser. However, database owners are allowed to + analyze all tables in their databases, except shared catalogs. + (The restriction for shared catalogs means that a true database-wide + <command>ANALYZE</command> can only be performed by a superuser.) + <command>ANALYZE</command> will skip over any tables that the calling user + does not have permission to analyze. + </para> + + <para> Foreign tables are analyzed only when explicitly selected. Not all foreign data wrappers support <command>ANALYZE</command>. If the table's wrapper does not support <command>ANALYZE</command>, the command prints a |