Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: pg_get_pid - Manual
[go: Go Back, main page]

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

search for in the

pg_get_result" width="11" height="7"/> <pg_get_notify
Last updated: Sun, 25 Nov 2007

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 。

Example#1 PostgreSQL バックエンドの PID

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

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



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

pg_get_result" width="11" height="7"/> <pg_get_notify
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites