(PHP 4 >= 4.2.0, PHP 5, PHP 7)
pg_connection_status — �������״̬
$connection
) : intpg_connection_status() ����һ�����ӵ�״̬�����ܵ�״̬Ϊ PGSQL_CONNECTION_OK �� PGSQL_CONNECTION_BAD��
Example #1 pg_connection_status() ����
<?php
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");
$stat = pg_connection_status($dbconn);
echo 'connection_status: '.$stat;
?>
Example #2 pg_connection_status() ����
<?php
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");
$stat = pg_connection_status($dbconn);
echo 'connection_status: '.$stat;
?>
�μ� pg_connection_busy()��