All Questions
Database Indexing hard

In PostgreSQL, why can't an Index-Only Scan run without checking the Visibility Map?

  1. A The Visibility Map is used to perform the complex JOIN calculations that are required to synchronize data across several disparate nodes.
  2. B The index does not store MVCC Transaction IDs; the map identifies 'All-Visible' pages where it is safe to trust the index without checking the physical row.
  3. C The Visibility Map is used to ensure that all B-Tree indexes remain strictly ACID compliant during high-frequency concurrent update operations.
  4. D The database uses the map to ensure that the sequential Write-Ahead Log (WAL) is correctly synchronized with the B-Tree's internal page structures.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions