Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty

From: "Euler Taveira" <euler(at)eulerto(dot)com>
To: d(dot)kovalenko(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty
Date: 2026-01-31 00:54:27
Message-ID: 71c7863e-62cb-4121-8a4f-a760a29f4bc6@app.fastmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Jan 30, 2026, at 12:59 PM, PG Bug reporting form wrote:
>
> My test framework uses "pg_ctl status ..." to detect a state of Postgres
> instance - uninitialized, stopped, running.
>
> Time from time, it returns the error - pg_ctl: the PID file
> "/xxxx/postmaster.pid" is empty
>

You didn't provide enough information. Linux distro and version?

> https://github.com/postgrespro/testgres/issues/329
>

I would say that the operating system is the one that is probably removing the
postmaster.pid. You are using /tmp as your base directory. Service like
systemd-tmpfiles-clean removes temporary files from /tmp. If systemd is not in
use, I would check the cron.

--
Euler Taveira
EDB https://www.enterprisedb.com/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dmitry Kovalenko 2026-01-31 01:27:21 Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty
Previous Message PG Bug reporting form 2026-01-30 15:59:18 BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty