mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 12:10:41 +02:00
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
This commit is contained in:
parent
26555cbd6e
commit
ed6df2e0e3
@ -114,6 +114,16 @@ ANALYZE [ VERBOSE ] [ <replaceable class="parameter">table_and_columns</replacea
|
|||||||
<refsect1>
|
<refsect1>
|
||||||
<title>Notes</title>
|
<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>
|
<para>
|
||||||
Foreign tables are analyzed only when explicitly selected. Not all
|
Foreign tables are analyzed only when explicitly selected. Not all
|
||||||
foreign data wrappers support <command>ANALYZE</command>. If the table's
|
foreign data wrappers support <command>ANALYZE</command>. If the table's
|
||||||
|
Loading…
Reference in New Issue
Block a user