I've been learning MVCC in PostgreSQL. As I understood, when the row is updated, a new row will be added and the xmax
value in old row will have the value of the xmin
of the newly added row.
When I checked it in the table I have in my Postgres DB, the xmin
and xmax
values are the same. What does it mean?
xmin | xmax | id | serial | paid
----------+----------+----------+----------------+------
54569114 | 54569114 | 11099324 | 76605297311437 | t
54569111 | 54569111 | 11099323 | 38131108141783 | t
54569101 | 54569101 | 11099322 | 49399633274146 | t
54569092 | 0 | 11099321 | 44672543705101 | f
54569090 | 54569090 | 11099320 | 21324499293647 | t
54569083 | 0 | 11099319 | 82878160317074 | f
54569079 | 54569079 | 11099318 | 31091666079121 | t