I know that the physical storage in PostgreSQL looks like:
heap table:
<old_tuple, t_xmin, t_xmax>
<new_tuple, t_xmin, t_xmax>
index:
<old_index_value, old_RID>
<new_index_value, new_RID>
So Index-Only Scan
need the help of Visibility Map
.
My question is: Why not we store the t_xmin
, t_xmax
in index as well?
like:
index:
<old_index_value, old_RID, t_xmin, t_xmax>
<new_index_value, new_RID, t_xmin, t_xmax>