]> granicus.if.org Git - postgresql/commitdiff
Document new libpq connection statuses for target_session_attrs.
authorRobert Haas <rhaas@postgresql.org>
Wed, 15 Feb 2017 16:03:41 +0000 (11:03 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 15 Feb 2017 16:05:44 +0000 (11:05 -0500)
I didn't realize these would ever be visible to clients, but Michael
figured out that it can happen when using asynchronous interfaces
such as PQconnectPoll.

Michael Paquier

doc/src/sgml/libpq.sgml

index ea7e7da9d423228bd8d465a3b61127b3954f19f0..4bc5bf31927ef1fe1055cf01f8394cf71a4fc261 100644 (file)
@@ -410,6 +410,24 @@ PostgresPollingStatusType PQconnectPoll(PGconn *conn);
           </para>
          </listitem>
         </varlistentry>
+
+        <varlistentry id="libpq-connection-check-writable">
+         <term><symbol>CONNECTION_CHECK_WRITABLE</symbol></term>
+         <listitem>
+          <para>
+           Checking if connection is able to handle write transactions.
+          </para>
+         </listitem>
+        </varlistentry>
+
+        <varlistentry id="libpq-connection-consume">
+         <term><symbol>CONNECTION_CONSUME</symbol></term>
+         <listitem>
+          <para>
+           Consuming any remaining response messages on connection.
+          </para>
+         </listitem>
+        </varlistentry>
        </variablelist>
 
        Note that, although these constants will remain (in order to maintain