背景前阵子某个客户反馈他的RDSPostgreSQL无法写入,报错信息如下:postgresselectfromtest;id(0rows)postgresinsertintotestselect1;ERROR:databaseisnotacceptingcommandstoavoidwraparounddatalossindatabase"xxxx"HINT:Stopthepostmasterandvacuumthatdatabaseinsingleusermode.Youmightalsoneedtocommitorrollbackoldpreparedtransactions.随后RDS工程师介入处理以后,该问题立马得到了解决。XID基础原理XID定义XID(Trans...