查询给定时间点的历史数据 本页为您介绍查询给定时间点的历史数据的方法。 plaintext teledb SELECT pgxactcommittimestamp(xmin) as xmintime, pgxactcommittimestamp(case xmax when 0 then null else xmax end) as xmaxtime, FROM pgdirtyread('foo') AS t(tableoid oid, ctid tid, xmin xid, xmax xid, cmin cid, cmax cid, dead boolean,bar bigint, baz text) where (pgxactcommittimestamp(xmin) < ' 20231102 16:43:02' and (pgxactcommittimestamp(case xmax when 0 then null else xmax end) < '20231102 16:43:02') is distinct from true ) ; xmintime xmaxtime tableoid ctid xmin xmax cmin cmax dead bar baz ++++++++++ 20231102 16:42:47.230036+08 16432 (0,3) 680 0 0 0 f 5 eee 20231102 16:42:41.46109+08 16432 (0,3) 659 0 0 0 f 3 cccnew2 (2 rows)