Bird
0
0

A PostgreSQL server has effective_cache_size set too low. What problem might this cause?

medium📝 Debug Q14 of 15
PostgreSQL - Performance Tuning
A PostgreSQL server has effective_cache_size set too low. What problem might this cause?
APostgreSQL will allocate too much memory for sorting operations
BThe server will crash due to memory exhaustion
CPostgreSQL may underestimate available cache and choose inefficient query plans
DConnections will be refused due to low cache size
Step-by-Step Solution
Solution:
  1. Step 1: Understand effective_cache_size role

    This setting helps PostgreSQL estimate how much OS cache is available for data pages.
  2. Step 2: Consequence of low effective_cache_size

    If set too low, PostgreSQL thinks less cache is available, so it may avoid index scans or other efficient plans, choosing slower ones.
  3. Final Answer:

    PostgreSQL may underestimate available cache and choose inefficient query plans -> Option C
  4. Quick Check:

    Low effective_cache_size = conservative query plans [OK]
Quick Trick: Low effective_cache_size causes conservative, slower plans [OK]
Common Mistakes:
  • Confusing effective_cache_size with work_mem
  • Assuming server crashes from low effective_cache_size
  • Thinking it limits connection count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes