All Questions
Postgresql hard

How does PostgreSQL efficiently determine whether a transaction ID (XID) found in a data page represents a successfully committed change?

  1. A By performing a full physical scan of the active WAL segments on the disk to find a commit record.
  2. B By checking the 'Commit Log' (CLOG) bitmap, which stores 2 bits of status for every transaction.
  3. C By querying a specialized system-catalog table that tracks the lifecycle of every backend process.
  4. D By verifying the cryptographic signature of the row header against the master cluster key.

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

Get the app

Related questions