downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

pg_get_result> <pg_get_notify
[edit] Last updated: Fri, 17 May 2013

view this page in

pg_get_pid

(PHP 4 >= 4.3.0, PHP 5)

pg_get_pidバックエンドのプロセス ID を得る

説明

int pg_get_pid ( resource $connection )

pg_get_pid() は、バックエンド(データベースサーバ のプロセス)のプロセス ID を取得します。プロセス ID は、 NOTIFY メッセージが他のプロセスから送信されている かどうかを調べるために有用です。

パラメータ

connection

PostgreSQL データベースの接続リソース。

返り値

バックエンドのデータベースのプロセス ID 。

例1 PostgreSQL バックエンドの PID

<?php 
$conn 
pg_pconnect("dbname=publisher");
if (!
$conn) {
  echo 
"An error occurred.\n";
  exit;
}

// バックエンドのプロセスIDを取得。このプロセスIDをpg_get_notify()で使用
$pid pg_get_pid($conn);
?>

参考



add a note add a note User Contributed Notes pg_get_pid - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites