Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb1974c

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 (seecommits8bc225e andcc26599). But we forgot to document thatanywhere in the user-facing docs; it did get mentioned in the 8.3 releasenotes, but nobody's looking at that any more. Per gripe from Suya Huang.
1 parentb910d7e commitfb1974c

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
@@ -16946,7 +16946,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1694616946
<para>
1694716947
<function>pg_database_size</function> and <function>pg_tablespace_size</>
1694816948
accept the OID or name of a database or tablespace, and return the total
16949-
disk space used therein.
16949+
disk space used therein. To use <function>pg_database_size</function>,
16950+
you must have <literal>CONNECT</> permission on the specified database
16951+
(which is granted by default). To use <function>pg_tablespace_size</>,
16952+
you must have <literal>CREATE</> permission on the specified tablespace,
16953+
unless it is the default tablespace for the current database.
1695016954
</para>
1695116955

1695216956
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp