Only one row of operational statistics for the entire database cluster is stored.
"blks_hit" stores the number of blocks retrieved from the buffer cache (cache hits).
"blks_read" is the sum of the number of blocks read from disk and the number of blocks read from the buffer cache.
By default, the "track_counts" parameter is "off", so no activity statistics are collected.
"tup_fetched" contains the number of rows fetched using index scans.
※This sample exam is different from those that appear in the actual OSS-DB Exam.
2025/05/30
A. pg_stat_database contains one row of operational statistics per database.
B. This is a correct statement.
C. blks_read contains the number of blocks read from disk. It does not include the number of blocks read from the buffer cache.
D. The track_counts parameter must be on to collect activity statistics. By default, the track_counts parameter is on, so activity statistics are collected even immediately after initdb.
E. It contains the number of rows read, not just index scans. The number of rows read by index scans can be viewed table by table with idx_tup_fetch in pg_stat_(all|sys|user)_tables.
Therefore, the correct answers are A, C, D, and E.