Andres Freund <andres(at)anarazel(dot)de> writes:
> Should we take the danger of postmaster dying without cleaning up the pid file
> and then another process reusing that pid serious? That obviously could make
> pg_ctl wait until timeout.
I'm under the impression that Unixen try not to recycle PIDs within
a short interval. So I'm not that worried about this. (Also, since
we treat EPERM like ESRCH, conflicting PIDs belonging to other user
IDs won't matter anyway.)
regards, tom lane