pg_stat_activity: document client_port being null
authorAlvaro Herrera <[email protected]>
Tue, 12 Nov 2019 21:34:20 +0000 (18:34 -0300)
committerAlvaro Herrera <[email protected]>
Tue, 12 Nov 2019 21:48:41 +0000 (18:48 -0300)
As suggested by Stephen Frost.
Discussion: https://postgr.es/m/20191104160605[email protected]

doc/src/sgml/monitoring.sgml

index d18b271a58d5a94802a0fb7306dee3dac919a0a5..901fee97ffbf58fb643a34cde39cc3ac056047f6 100644 (file)
@@ -652,7 +652,8 @@ postgres   27093  0.0  0.0  30096  2752 ?        Ss   11:34   0:00 postgres: ser
      <entry><structfield>client_port</structfield></entry>
      <entry><type>integer</type></entry>
      <entry>TCP port number that the client is using for communication
-      with this backend, or <literal>-1</literal> if a Unix socket is used
+      with this backend, or <literal>-1</literal> if a Unix socket is used.
+      If this field is null, it indicates that this is an internal server process.
      </entry>
     </row>
     <row>