> Time from time, it returns the error - pg_ctl: the PID file > "/xxxx/postmaster.pid" is empty >
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.