PHP workshop for 2 days with Shopware, Sylius, PHPUnit and Codeception in Duisburg


(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

pg_get_pidPing 数据库连接


pg_get_pid(resource $connection): int

pg_get_pid() 取得后端(数据库服务器进程)的 PID。PID 用来检查其它进程是否发送了 NOTIFY 消息。

示例 #1 PostgreSQL 后端 PID

if (!
$conn) {
"An error occured.\n";

// Backend process PID. Use PID with pg_get_notify()
$pid pg_get_pid($conn);

参见 pg_get_notify()

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top