HomeMogDBMogDB StackUqbar
v2.1

Documentation:v2.1

Supported Versions:

Other Versions:

PQfinish

Function

PQfinish is used to close the connection to the server and release the memory used by the PGconn object.

Prototype

void PQfinish(PGconn *conn);

Parameter

Table 1 PQfinish parameter

Keyword Parameter Description
conn Points to the object pointer that contains the connection information.

Precautions

If the server connection attempt fails (as indicated by PQstatus), the application should call PQfinish to release the memory used by the PGconn object. The PGconn pointer must not be used again after PQfinish has been called.

Example

For details, see Example.

Copyright © 2011-2024 www.enmotech.com All rights reserved.