电脑可能自动更新重启了后,Postgresql的服务突然就不行了,启动不了了。我是用 Docker创建的postgresql的容器,一直在 Restarting。
然后看了下日志LOG,内容如下:
1 | LOG: starting PostgreSQL 12.17 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit |
看到关键的应该是这句 invalid primary checkpoint record