Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f
Date
Msg-id 1953533.1644541040@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
Andres Freund <andres@anarazel.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



pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f
Next
From: Robert Haas
Date:
Subject: pgsql: Add suport for server-side LZ4 base backup compression.