★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.pg-trace.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PostgreSQL
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageHungarian version of this page
PostgreSQL
* pg_close
* pg_cmdtuples
* pg_connect
* pg_dbname
* pg_errormessage
* pg_exec
* pg_fetch_array
* pg_fetch_object
* pg_fetch_row
* pg_FieldIsNull
* pg_fieldname
* pg_fieldnum
* pg_fieldprtlen
* pg_fieldsize
* pg_fieldtype
* pg_freeresult
* pg_getlastoid
* pg_host
* pg_loclose
* pg_locreate
* pg_loexport
* pg_loimport
* pg_loopen
* pg_loread
* pg_loreadall
* pg_lounlink
* pg_lowrite
* pg_numfields
* pg_numrows
* pg_options
* pg_pconnect
* pg_port
* pg_result
* pg_trace
* pg_tty
* pg_untrace
Manual: pg_trace
View the source code for this pageSearch the site



Previous page
 pg_result
 Updated
Mon, 14 Aug 2000
pg_tty 
Next page


pg_trace

(PHP4 >= 4.0.1)

pg_trace -- PostgreSQLサーバーへの接続をトレースする

説明

bool pg_trace (string filename [, string mode [, int connection]])

PostgreSQLフロントエンド/バックエンド間のコミュニケーションの デバック用のファイルへのトレースを有効にします。 このトレース結果を完全に理解するためには、PostgreSQLコミュニケーション プロトコルの詳細に精通している必要があります。 そうでない人にとってもサーバーに送られたクエリーのエラーをトレースする ことは有用です。試しに'grep '^To backend' trace.log'を実行し、 実際にPostgreSQLサーバーに送信されるクエリーを見てみて下さい。

filenameおよびmodefopen()と同じです。 (modeのデフォルトは'w') connectionによりトレースへのコネクションを 指定します。デフォルトは最後にオープンされたコネクションです。

filenameをロギング用にオープンできた場合にTRUE、 その他の場合にFALSEを返します。

fopen()およびpg_untrace()も参照 下さい。


 About Notes


Previous page
 pg_result
 Updated
Mon, 14 Aug 2000
pg_tty 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.