Bird
0
0

What does the idx_scan column in pg_stat_user_indexes represent?

easy📝 Conceptual Q11 of 15
PostgreSQL - Indexing Strategies
What does the idx_scan column in pg_stat_user_indexes represent?
AThe number of times an index was used in a scan operation
BThe total size of the index in bytes
CThe number of rows in the indexed table
DThe creation date of the index
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of pg_stat_user_indexes

    This system view tracks usage statistics for user-created indexes in PostgreSQL.
  2. Step 2: Identify the meaning of idx_scan

    The idx_scan column counts how many times the index was used in scan operations, showing its usage frequency.
  3. Final Answer:

    The number of times an index was used in a scan operation -> Option A
  4. Quick Check:

    idx_scan = index usage count [OK]
Quick Trick: Remember idx_scan counts index scans, not size or rows [OK]
Common Mistakes:
  • Confusing idx_scan with index size
  • Thinking idx_scan shows table row count
  • Assuming idx_scan is creation date

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes