Add missing connection statuses to docs

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 095493a3771a99d0e4c906ad1cc33791efaa7248
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2024-03-11T16:20:36Z
Releases: 17.0
Add missing connection statuses to docs

The list of connection statuses that PQstatus might return during an
asynchronous connection attempt was outdated:

1. CONNECTION_SETENV is never returned anymore and is only part of the
   enum for backwards compatibility, so remove it from the docs.
2. CONNECTION_CHECK_STANDBY and CONNECTION_GSS_STARTUP were not listed,
   so add them.

CONNECTION_NEEDED and CONNECTION_CHECK_TARGET are not listed in the docs
on purpose, since these are internal states that can never be observed
by a caller of PQstatus.

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://postgr.es/m/CAGECzQRb21spiiykQ48rzz8w+Hcykz+mB2_hxR65D9Qk6nnw=w@mail.gmail.com

Files

PathChange+/−
doc/src/sgml/libpq.sgml modified +12 −3
src/interfaces/libpq/libpq-fe.h modified +3 −2

Documentation touched

Discussion