summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-01-22 11:29:43 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-01-22 11:30:01 -0500
commita5f7b837f3478ffb0362156452b2ff07c86a47e3 (patch)
tree65e7bc3d5603c0e465d68d3ae88e89a7df42c3d3
parentcbcff1729ff27a7fb28d3339e448f90ca0a70dac (diff)
Doc: remove misleading claim in documentation of PQreset().
This text claimed that the reconnection would occur "to the same server", but there is no such guarantee in the code, nor would insisting on that be an improvement. Back-patch to v10 where multi-host connection strings were added. Discussion: https://postgr.es/m/1095901.1611268376@sss.pgh.pa.us
-rw-r--r--doc/src/sgml/libpq.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 1e00d47f2de..e4612b3cc06 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -645,8 +645,8 @@ void PQreset(PGconn *conn);
<para>
This function will close the connection
- to the server and attempt to reestablish a new
- connection to the same server, using all the same
+ to the server and attempt to establish a new
+ connection, using all the same
parameters previously used. This might be useful for
error recovery if a working connection is lost.
</para>
@@ -669,7 +669,7 @@ PostgresPollingStatusType PQresetPoll(PGconn *conn);
<para>
These functions will close the connection to the server and attempt to
- reestablish a new connection to the same server, using all the same
+ establish a new connection, using all the same
parameters previously used. This can be useful for error recovery if a
working connection is lost. They differ from <function>PQreset</function> (above) in that they
act in a nonblocking manner. These functions suffer from the same