我知道 PostgreSQL 中的物理存储如下所示:
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>
所以Index-Only Scan
需要帮助Visibility Map
。
我的问题是:为什么我们不将t_xmin
,也存储t_xmax
在索引中?
喜欢:
index:
<old_index_value, old_RID, t_xmin, t_xmax>
<new_index_value, new_RID, t_xmin, t_xmax>