diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 8aa4d5fe7fed0d67cf8a9e73994fc17b86fa441b..3630ba6fc06ec2d9cf91c2d6dc23855f2012dddf 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -15090,7 +15090,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
    <para>
     <function>pg_database_size</function> and <function>pg_tablespace_size</>
     accept the OID or name of a database or tablespace, and return the total
-    disk space used therein.
+    disk space used therein.  To use <function>pg_database_size</function>,
+    you must have <literal>CONNECT</> permission on the specified database
+    (which is granted by default).  To use <function>pg_tablespace_size</>,
+    you must have <literal>CREATE</> permission on the specified tablespace,
+    unless it is the default tablespace for the current database.
    </para>
 
    <para>