Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty - Mailing list pgsql-bugs

From Euler Taveira
Subject Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty
Date
Msg-id 71c7863e-62cb-4121-8a4f-a760a29f4bc6@app.fastmail.com
Whole thread Raw
In response to BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty
List 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/



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty
Next
From: Dmitry Kovalenko
Date:
Subject: Re: BUG #19391: pg_ctl: the PID file "/xxxx/postmaster.pid" is empty