首页 > 解决方案 > 无法访问 Postgres 数据库中事务 xxxxxx 的状态

问题描述

我无法访问 postgres 中的几个表,最初,由于我在日志中发现的问题,数据库没有出现如下

2021-05-12 10:54:16.525 CEST [21191] FATAL:  unable to access state of transcaction 183333957 nicht zugreifen
2021-05-12 10:54:16.525 CEST [21191] DETAIL:  unable to read from »pg_xact/00AE« bei Position

所以要修复它,我填充了有问题的文件

dd if=/dev/zero bs=1 count=204800 >> 00AE

现在根本无法访问一些表,如果我对其运行任何查询,它就会卡住并且我永远不会得到任何结果,日志中也没有错误消息或任何详细信息。

标签: postgresqlpostgresql-10

解决方案


推荐阅读