.. highlightlang:: us .. _pq_finish: pq_finish ========= .. index:: pq_finish .. us.tag pq_finish NOTREADYENGLISH New550 postgres :ref:`pq_finish` closes the connection to the server. .. function:: bool = pq_finish(db) .. us.return **Return Value** *bool* is TRUE (1) if the connection could be closed successfully and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: db *db* is the connection pointer returned by :ref:`pq_connectdb`. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.5.0 - New .. seealso:: :ref:`overview-postgresql`, :ref:`pq_connectdb` :sub:`id-467783`