Postgres autovacuum 被一条长事务卡住,dead tuple 怎么清都清不掉
dead tuple 一直涨、表越来越胖,VACUUM 日志却说 dead but not yet removable。一条没人管的长事务把 xmin horizon 拽住,vacuum 啥也回收不了。找出来干掉它。
带有该标签的文章
dead tuple 一直涨、表越来越胖,VACUUM 日志却说 dead but not yet removable。一条没人管的长事务把 xmin horizon 拽住,vacuum 啥也回收不了。找出来干掉它。
Postgres 流量上来就报 'remaining connection slots reserved'。修复方法:合理化池子大小、前面放 PgBouncer 走 transaction 模式、清掉 idle-in-transaction 连接。