Russian Ukraine English
Catalog RSS


(PHP 3, PHP 4 )

pg_close -- Close a PostgreSQL connection


bool pg_close (int connection)

Returns false if connection is not a valid connection index, true otherwise. Closes down the connection to a PostgreSQL database associated with the given connection index.

Note: This isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

pg_close() will not close persistent links generated by pg_pconnect().