8000 Document permissions needed for pg_database_size and pg_tablespace_size. · larkly/postgres-docker@bb837d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb837d7

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 019be0d commit bb837d7

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
@@ -14486,7 +14486,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1448614486
<para>
1448714487
<function>pg_database_size</function> and <function>pg_tablespace_size</>
1448814488
accept the OID or name of a database or tablespace, and return the total
14489-
disk space used therein.
14489+
disk space used therein. To use <function>pg_database_size</function>,
14490+
you must have <literal>CONNECT</> permission on the specified database
14491+
(which is granted by default). To use <function>pg_tablespace_size</>,
14492+
you must have <literal>CREATE</> permission on the specified tablespace,
14493+
unless it is the default tablespace for the current database.
1449014494
</para>
1449114495

1449214496
<para>

0 commit comments

Comments
 (0)
0