.. highlightlang:: us .. _pq_status: pq_status ========= .. index:: pq_status .. us.tag pq_status NOTREADYENGLISH New550 postgres :ref:`pq_status` returns the status of the connection. .. function:: status = pq_status(db) .. us.return **Return Value** *status* is one of the following values: .. list-table:: :header-rows: 0 * - PQ_CONNECTION_OK (0) - * - PQ_CONNECTION_BAD (1) - .. 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.2.0 - New .. seealso:: :ref:`overview-postgresql` :sub:`id-1742493`