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 | my php.net 
search for in the  
<pg_get_notifypg_get_result" width="11" height="7"/>
view the version of this page
Last updated: Sun, 07 May 2006

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 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_notifypg_get_result" width="11" height="7"/>
 Last updated: Sun, 07 May 2006
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2006 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Wed Jun 28 13:19:26 2006 JST