postgres 退出_postgresql – 如何修复Postgres以便在突然关闭后启动它?
由于突然斷電,在我的本地機器上運行的PostGres服務器突然關閉.重新啟動后,我嘗試重新啟動postgres,我收到此錯誤:
$pg_ctl -D /usr/local / pgsql / data restart
pg_ctl: PID file "/usr/local/pgsql/data/postmaster.pid" does not exist
Is server running?
starting server anyway
server starting
$:/usr/local/pgsql/data$LOG: database system shutdown was interrupted at 2009-02-28 21:06:16
LOG: checkpoint record is at 2/8FD6F8D0
LOG: redo record is at 2/8FD6F8D0; undo record is at 0/0; shutdown FALSE
LOG: next transaction ID: 0/1888104; next OID: 1711752
LOG: next MultiXactId: 2; next MultiXactOffset: 3
LOG: database system was not properly shut down; automatic recovery in progress
LOG: redo starts at 2/8FD6F918
LOG: record with zero length at 2/8FFD94A8
LOG: redo done at 2/8FFD9480
LOG: could not fsync segment 0 of relation 1663/1707047/1707304: No such file or directory
FATAL: storage sync failed on magnetic disk: No such file or directory
LOG: startup process (PID 5465) exited with exit code 1
LOG: aborting startup due to startup process failure
數據目錄中沒有postmaster.pid文件.什么可能是這種行為的原因,當然還有出路?
總結
以上是生活随笔為你收集整理的postgres 退出_postgresql – 如何修复Postgres以便在突然关闭后启动它?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 通过java类的反射机制获取类的属性类型
- 下一篇: 画直线的算法之DDA算法+代码实现(法一