バージョンごとのドキュメント一覧

第28章 データベース活動状況の監視

目次

28.1. 標準的なUnixツール
28.2. 累積統計システム
28.2.1. 統計情報収集のための設定
28.2.2. 統計情報の表示
28.2.3. pg_stat_activity
28.2.4. pg_stat_replication
28.2.5. pg_stat_replication_slots
28.2.6. pg_stat_wal_receiver
28.2.7. pg_stat_recovery_prefetch
28.2.8. pg_stat_subscription
28.2.9. pg_stat_subscription_stats
28.2.10. pg_stat_ssl
28.2.11. pg_stat_gssapi
28.2.12. pg_stat_archiver
28.2.13. pg_stat_io
28.2.14. pg_stat_bgwriter
28.2.15. pg_stat_wal
28.2.16. pg_stat_database
28.2.17. pg_stat_database_conflicts
28.2.18. pg_stat_all_tables
28.2.19. pg_stat_all_indexes
28.2.20. pg_statio_all_tables
28.2.21. pg_statio_all_indexes
28.2.22. pg_statio_all_sequences
28.2.23. pg_stat_user_functions
28.2.24. pg_stat_slru
28.2.25. 統計情報関数
28.3. ロックの表示
28.4. 進捗状況のレポート
28.4.1. ANALYZEの進捗状況のレポート
28.4.2. CLUSTERの進捗状況のレポート
28.4.3. COPYの進捗状況のレポート
28.4.4. CREATE INDEXの進捗状況のレポート
28.4.5. VACUUMの進捗状況のレポート
28.4.6. ベースバックアップの進捗状況のレポート
28.5. 動的追跡
28.5.1. 動的追跡のためのコンパイル
28.5.2. 組み込み済みのプローブ
28.5.3. プローブの利用
28.5.4. 新規プローブの定義
<title>Monitoring Database Activity</title>

A database administrator frequently wonders, <quote>What is the system doing right now?</quote> This chapter discusses how to find that out. データベース管理者はよく、システムは今現在何をしているかを気にします。 本章ではそれを知る方法について説明します。

Several tools are available for monitoring database activity and analyzing performance. Most of this chapter is devoted to describing <productname>PostgreSQL</productname>'s cumulative statistics system, but one should not neglect regular Unix monitoring programs such as <command>ps</command>, <command>top</command>, <command>iostat</command>, and <command>vmstat</command>. Also, once one has identified a poorly-performing query, further investigation might be needed using <productname>PostgreSQL</productname>'s <link linkend="sql-explain"><command>EXPLAIN</command></link> command. <xref linkend="using-explain"/> discusses <command>EXPLAIN</command> and other methods for understanding the behavior of an individual query. データベース活動状況の監視と性能解析用のツールはいくつか存在します。 本章の大部分はPostgreSQLの累積統計システムの説明に費されていますが、pstopiostatvmstatなどの通常のUnix監視プログラムを無視すべきではありません。 また、性能が悪い問い合わせであると認知された問い合わせは、その後、PostgreSQLEXPLAINコマンドを使用して調査を行う必要が発生します。 14.1では、個々の問い合わせの振舞いを理解するための、EXPLAINやその他の方法について記載しています。