Skip to content

Commit f056f75

Browse files
committed
doc: Mention possible ephemeral discrepancies in pg_stat_activity
Ephemeral inconsistencies across multiple attributes of pg_stat_activity can exist as the system is designed to be efficient with a low overhead. This question is raised by users from time to time based on the data read in the view, so let's add a note in the docs about this possibility. Author: Alex Friedman <[email protected]> Reviewed-by: Sami Imseih <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent 9469d7f commit f056f75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/monitoring.sgml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,9 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
10221022
it may or may not be <literal>waiting</literal> on some event. If the state
10231023
is <literal>active</literal> and <structfield>wait_event</structfield> is non-null, it
10241024
means that a query is being executed, but is being blocked somewhere
1025-
in the system.
1025+
in the system. To keep the reporting overhead low, the system does not
1026+
attempt to synchronize different aspects of activity data for a backend.
1027+
As a result, ephemeral discrepancies may exist between the view's columns.
10261028
</para>
10271029
</note>
10281030

0 commit comments

Comments
 (0)