Skip to content

Commit 9012022

Browse files
committed
Document permissions needed for pg_database_size and pg_tablespace_size.
Back in 8.3, we installed permissions checks in these functions (see commits 8bc225e and cc26599). But we forgot to document that anywhere in the user-facing docs; it did get mentioned in the 8.3 release notes, but nobody's looking at that any more. Per gripe from Suya Huang.
1 parent 5405560 commit 9012022

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15090,7 +15090,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1509015090
<para>
1509115091
<function>pg_database_size</function> and <function>pg_tablespace_size</>
1509215092
accept the OID or name of a database or tablespace, and return the total
15093-
disk space used therein.
15093+
disk space used therein. To use <function>pg_database_size</function>,
15094+
you must have <literal>CONNECT</> permission on the specified database
15095+
(which is granted by default). To use <function>pg_tablespace_size</>,
15096+
you must have <literal>CREATE</> permission on the specified tablespace,
15097+
unless it is the default tablespace for the current database.
1509415098
</para>
1509515099

1509615100
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy