【问题标题】:postmaster dead but pid file exists following "pg_ctl start"postmaster 死了,但 pid 文件在“pg_ctl start”之后存在
【发布时间】:2015-04-16 09:06:47
【问题描述】:

我在 redhat 6 上使用 postgres 9.2

我有点困惑,为什么 postgres 会发生以下情况

  1. 当 postgres 运行时,以 root 身份执行“service postgresql92-postgresql status”会导致“postmaster (pid 1379) is running...”(如预期的那样)

  2. 当 postgres 运行“pg_ctl stop -D $PGDATA -m s”来停止 postgres

  3. 随着 postgres 运行“pg_ctl -D $PGDATA start”来启动 postgres(postgres 现在运行正常)

  4. 现在以 root 身份运行“service postgresql92-postgresql status”,输出现在是“postmaster dead but pid file exists”

我的困惑是为什么当 postgres 正常运行时我在步骤 4 中收到消息?我是否错误地停止/启动 postgres?

谢谢 戴夫

【问题讨论】:

    标签: postgresql


    【解决方案1】:

    这已在 dba.stackexchange 上为我解答,该线程解释了发生了什么

    https://dba.stackexchange.com/questions/98117/postmaster-dead-but-pid-file-exists/98122#98122

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-05
      • 2013-08-27
      • 1970-01-01
      • 2016-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多