PGSQL invalid primary checkpoint record could not locate a valid checkpoint record

pgsql | 2020-01-18 16:14:06.418 CST [25] LOG: invalid primary checkpoint record
pgsql | 2020-01-18 16:14:06.418 CST [25] PANIC: could not locate a valid checkpoint record

 

如果在容器中, 使用 

docker run -it  -v /dbdata/postgresql:/var/lib/postgresql/data  registry.uixe.net/images/postgres   /bin/bash 

registry.uixe.net/images/postgres 是我的内网镜像地址

gosu postgres pg_resetwal -f /var/lib/postgresql/data

posted @ 2020-01-18 16:20  麦壳饼  阅读(747)  评论(0编辑  收藏  举报