PostgreSQL的rowid是TID,包括这条记录在表中的页号和页内偏移(item pointer索引),用形如(0,35)的格式给出,在PG中,可以直接用TID查询出记录,例如:
select * from items where ctid = '(0, 35)';
其中 ctid 就是指这一条记录的 tid,也可以在查询时显示ctid:
select ctid, xmin, xmax, * from items;
PostgreSQL的rowid是TID,包括这条记录在表中的页号和页内偏移(item pointer索引),用形如(0,35)的格式给出,在PG中,可以直接用TID查询出记录,例如:
select * from items where ctid = '(0, 35)';
其中 ctid 就是指这一条记录的 tid,也可以在查询时显示ctid:
select ctid, xmin, xmax, * from items;