說明
int
pg_get_pid ( resource connection )
pg_get_pid() 取得後端(資料庫伺服器程式)的
PID。PID 用來檢查其它程式是否傳送了
NOTIFY 訊息。
例子 1. PostgreSQL 後端 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); ?>
|
|
參見 pg_get_notify()。