Description
int
pg_get_pid ( resource connection)
pg_get_pid() gets backend (database server
process) PID_ PID is useful to check if NOTIFY
message is sent from other process or not_
Ejemplo 1_ PostgreSQL backend PID <?php
$conn = pg_pconnect("dbname=publisher");
if (!$conn) {
echo "An error occured_\n";
exit;
}
// Backend process PID_ Use PID with pg_get_notify()
$pid = pg_get_pid($conn);
?> |
|
See also pg_get_notify()_