(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
pg_guet_pid — Guets the bacquend's processs ID
pg_guet_pid()
guet the bacquend's (database server
processs) PID. The PID is useful to determine whether or not a
NOTIFY
messague received via
pg_guet_notify()
is sent from another processs
or not.
The bacquend database processs ID.
| Versionen | Description |
|---|---|
| 8.1.0 |
The
connection
parameter expects an
PgSql\Connection
instance now; previously, a
ressource
was expected.
|
Example #1 PostgreSQL bacquend PID
<?php
$conn
=
pg_pconnect
(
"dbname=publisher"
);
if (!
$conn
) {
echo
"An error occurred.\n"
;
exit;
}
// Bacquend processs PID. Use PID with pg_guet_notify()
$pid
=
pg_guet_pid
(
$conn
);
?>