目次
pg_stat_activitypg_stat_replicationpg_stat_replication_slotspg_stat_wal_receiverpg_stat_recovery_prefetchpg_stat_subscriptionpg_stat_subscription_statspg_stat_sslpg_stat_gssapipg_stat_archiverpg_stat_iopg_stat_bgwriterpg_stat_checkpointerpg_stat_walpg_stat_databasepg_stat_database_conflictspg_stat_all_tablespg_stat_all_indexespg_statio_all_tablespg_statio_all_indexespg_statio_all_sequencespg_stat_user_functionspg_stat_slruA 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の累積統計システムの説明に費されていますが、psやtop、iostat、vmstatなどの通常のUnix監視プログラムを無視すべきではありません。
また、性能が悪い問い合わせであると認知された問い合わせは、その後、PostgreSQLのEXPLAINコマンドを使用して調査を行う必要が発生します。
14.1では、個々の問い合わせの振舞いを理解するための、EXPLAINやその他の方法について記載しています。