PQfinish
Description
Closes the connection to the server and releases the memory used by the PGconn object.
Prototype
void PQfinish(PGconn* conn);
Parameters
Keyword |
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.
Examples
For details, see Example.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot