pg_get_pid
(PHP 4 >= 4.3.0, PHP 5)
pg_get_pid — Gets the backend's process ID
Description
int pg_get_pid
( resource $connection
)
Parameters
-
connection
-
PostgreSQL database connection resource.
Return Values
The backend database process ID.
Examples
Example #1 PostgreSQL backend PID
<?php
$conn = pg_pconnect("dbname=publisher");
if (!$conn) {
echo "An error occured.\n";
exit;
}
$pid = pg_get_pid($conn);
?>