Add a basic note that some columns in pg_stat_activity and related
views are not visible to all users.
Discussion: https://www.postgresql.org/message-id/
3018acd9-e5d8-1e85-5ed7-
47276cd77569%402ndquadrant.com
stated above; instead they update continuously throughout the transaction.
+ Some of the information in the dynamic statistics views shown in
+ linkend="monitoring-stats-dynamic-views-table"/> is security restricted.
+ Ordinary users can only see all the information about their own sessions
+ (sessions belonging to a role that they are a member of). In rows about
+ other sessions, many columns will be null. Note, however, that the
+ existence of a session and its general properties such as its sessions user
+ and database are visible to all users. Superusers and members of the
+ built-in role
pg_read_all_stats (see also
+ linkend="default-roles"/>) can see all the information about all sessions.
+
+