如题,因为服务器死机断电重启,postgresql 报错了,postgresql error PANIC: could not locate a valid checkpoint record ,按照这个教程:
pg_resetwal /var/lib/postgresql/data
结果,postgresql 正常运行,但是数据库空了,只剩下 postgres 库,其他数据库全部丢失了,这是因为执行完这个命令导致的吗
如题,因为服务器死机断电重启,postgresql 报错了,postgresql error PANIC: could not locate a valid checkpoint record ,按照这个教程:
pg_resetwal /var/lib/postgresql/data
结果,postgresql 正常运行,但是数据库空了,只剩下 postgres 库,其他数据库全部丢失了,这是因为执行完这个命令导致的吗
|
Gannicus5Apr 6, 2025
1
牛逼啊,命令干啥用的都不知道直接线上跑
|
|
itechifyApr 6, 2025
2
生产数据库?准备提桶跑路吧
|
|
proxytoworldApr 6, 2025
3
有 reset 你还敢执行啊
|
|
4
@Gannicus5
@proxytoworld 肯定粗略看过的啊,sql 都 panic 了,不执行的话进都进不去。 而且这个也是一个乌龙,纯粹就是我用 dbeaver 的时候没把显示其他数据库的选项打开,数据其实是还在的 ![]() |