上一篇中描述了存储页面的格式和回滚机制,也了解了删除数据并不会马上释放空间,但是你可能还是有疑问,有没有办法‘看到’事务修改过程呢,下面我们一起来‘看看’数据更新时元数据的变化。...从官方文档看出,attname对应列名,attnum和attname对应,代表该列在postgresql表中列序号,其中系统列的序号是负数。...看一个实际的例子,还是用t_mvcc表举例:
postgres=> select attrelid,attname,attnum from pg_attribute where attrelid='public.t_mvcc...-------------- 12548select cmax,xmax,cmin,xmin,ctid,id,val from t_mvcc where id=20000003; --查看...的数据select cmax,xmax,cmin,xmin,ctid,id,val from t_mvcc where id=20000003;
--