• 追加された行はこの色です。
  • 削除された行はこの色です。
* ログ [#xcc26c03]

** SQLクエリーのログを取る [#n2f31066]
*** data/postgresql.conf: [#v4d04e2d]
 logging_collector = on                           # Enable capturing of stderr and csvlog
 log_directory = 'pg_log'                         # directory where log files are written,
 log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'  # log file name pattern,
 log_line_prefix = '%d %c %t'                     # special values:
 log_statement = 'all'                            # none, ddl, mod, all
http://stackoverflow.com/questions/722221/how-to-log-postgres-sql-queries

** 参考 [#deb1ff47]
:Error Reporting and Logging | http://www.postgresql.org/docs/8.4/static/runtime-config-logging.html
:Let's Postgres ログ関連の設定 | http://lets.postgresql.jp/documents/technical/log_setting
:Let's Postgres スロークエリの分析 | http://lets.postgresql.jp/documents/technical/query_analysis



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS