【发布时间】:2015-04-16 09:06:47
【问题描述】:
我在 redhat 6 上使用 postgres 9.2
我有点困惑,为什么 postgres 会发生以下情况
当 postgres 运行时,以 root 身份执行“service postgresql92-postgresql status”会导致“postmaster (pid 1379) is running...”(如预期的那样)
当 postgres 运行“pg_ctl stop -D $PGDATA -m s”来停止 postgres
随着 postgres 运行“pg_ctl -D $PGDATA start”来启动 postgres(postgres 现在运行正常)
现在以 root 身份运行“service postgresql92-postgresql status”,输出现在是“postmaster dead but pid file exists”
我的困惑是为什么当 postgres 正常运行时我在步骤 4 中收到消息?我是否错误地停止/启动 postgres?
谢谢 戴夫
【问题讨论】:
标签: postgresql