From: Michael Paquier Date: Fri, 26 Jun 2026 01:47:32 +0000 (+0900) Subject: doc: Improve description of pg_get_multixact_stats() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=thirdparty%2Fpostgresql.git doc: Improve description of pg_get_multixact_stats() This addresses two gaps in the documentation: - The function uses an xid, and was not mentioned as an exception in a section of the docs related to xid8. - The function returns NULL if a role does not have the privileges of pg_read_all_stats. The execution is not denied. Author: Chao Li Author: Yingying Chen Discussion: https://postgr.es/m/CAGGTb65Qmtor2nJP-ATgfWpMpD2qhKrdyO7fmRbbS++nQ=vtMw@mail.gmail.com --- diff --git a/doc/src/sgml/func/func-info.sgml b/doc/src/sgml/func/func-info.sgml index 34f4019690f..211bc8b238b 100644 --- a/doc/src/sgml/func/func-info.sgml +++ b/doc/src/sgml/func/func-info.sgml @@ -3020,8 +3020,9 @@ acl | {postgres=arwdDxtm/postgres,foo=r/postgres} vary between calls, even within a single transaction. - To use this function, you must have privileges of the - pg_read_all_stats role. + By default, all columns are shown as NULL unless + the user has privileges of the pg_read_all_stats + role. @@ -3032,8 +3033,9 @@ acl | {postgres=arwdDxtm/postgres,foo=r/postgres} The internal transaction ID type xid is 32 bits wide and wraps around every 4 billion transactions. However, the functions shown in , except - age, mxid_age, and - pg_get_multixact_members, use a + age, mxid_age, + pg_get_multixact_members, and + pg_get_multixact_stats, use a 64-bit type xid8 that does not wrap around during the life of an installation and can be converted to xid by casting if required; see for details.