At any time during connection, the status of the connection can be
checked by calling . If this call returns CONNECTION_BAD, then the
- connection procedure has failed; if the call returns <function>CONNECTION_OK>, then the
+ connection procedure has failed; if the call returns <symbol>CONNECTION_OK>, then the
connection is ready. Both of these states are equally detectable
from the return value of PQconnectPoll, described above. Other states might also occur
during (and only during) an asynchronous connection procedure. These
sslkeylogfile
- This parameter specifies the location where <literal>libpq>
+ This parameter specifies the location where <application>libpq>
will log keys used in this SSL context. This is useful for debugging
PostgreSQL protocol interactions or client
connections using network inspection tools like
Enter PEM pass phrase:
prompt that
OpenSSL will emit by default
when an encrypted client certificate key is provided to
- <literal>libpq>.
+ <application>libpq>.
If the key is not encrypted this parameter is ignored. The parameter
The status can be one of a number of values. However, only two of
these are seen outside of an asynchronous connection procedure:
- <literal>CONNECTION_OKl> and
- <literal>CONNECTION_BADl>. A good connection to the database
- has the status <literal>CONNECTION_OKl>. A failed
+ <symbol>CONNECTION_OKl> and
+ <symbol>CONNECTION_BADl>. A good connection to the database
+ has the status <symbol>CONNECTION_OKl>. A failed
connection attempt is signaled by status
- <literal>CONNECTION_BADl>. Ordinarily, an OK status will
+ <symbol>CONNECTION_BADl>. Ordinarily, an OK status will
remain so until , but a communications
failure might result in the status changing to
- <literal>CONNECTION_BADl> prematurely. In that case the
+ <symbol>CONNECTION_BADl> prematurely. In that case the
application could try to recover by calling
.
checked by calling .
If this call returns CONNECTION_BAD, then
the cancel procedure has failed; if the call returns
- <function>CONNECTION_OK>, then cancel request was
+ <symbol>CONNECTION_OK>, then cancel request was
successfully dispatched.
Both of these states are equally detectable from the return value of
PQcancelPoll, described above.
The status can be one of a number of values. However, only three of
these are seen outside of an asynchronous cancel procedure:
- <literal>CONNECTION_ALLOCATEDl>,
- <literal>CONNECTION_OKl> and
- <literal>CONNECTION_BADl>. The initial state of a
+ <symbol>CONNECTION_ALLOCATEDl>,
+ <symbol>CONNECTION_OKl> and
+ <symbol>CONNECTION_BADl>. The initial state of a
PGcancelConn that's successfully created using
- is <literal>CONNECTION_ALLOCATEDl>.
+ is <symbol>CONNECTION_ALLOCATEDl>.
A cancel request that was successfully dispatched
- has the status <literal>CONNECTION_OKl>. A failed
+ has the status <symbol>CONNECTION_OKl>. A failed
cancel attempt is signaled by status
- <literal>CONNECTION_BADl>. An OK status will
+ <symbol>CONNECTION_BADl>. An OK status will
remain so until or
is called.
- Return the version of <productname>libpq> that is being used.
+ Return the version of <application>libpq> that is being used.
int PQlibVersion(void);
evtInfo pointer should be cast to a
PGEventRegister *. This structure contains a
PGconn that should be in the
- <literal>CONNECTION_OKl> status; guaranteed if one calls
+ <symbol>CONNECTION_OKl> status; guaranteed if one calls
right after obtaining a good
PGconn. When returning a failure code, all
cleanup must be performed as no PGEVT_CONNDESTROY