Databases · Senior · Question 1 of 75

How does PostgreSQL decide whether a row version is visible to a transaction?

Explanation

xmin is the creating transaction and xmax the deleting or updating one. A snapshot lists which transactions were still in progress, so the row is visible only if its creator committed before it.

Further reading

Problem with a question

Databases · Senior · question 1

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz