pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Noah Misch <noah@leadboat.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f
Date: Thu, 10 Feb 2022 19:57:20 -0500
Message-ID: <1953533.1644541040@sss.pgh.pa.us> (raw)
In-Reply-To: <20220210225254.pds2dowte5yophmr@alap3.anarazel.de>
References: <E1nAIWI-0006et-HW@gemulon.postgresql.org>
	<CA+hUKGKV6fOHvfiPt8=dOKzvswjAyLoFoJF1iQXMNpi7+hD1JQ@mail.gmail.com>
	<855583.1642687119@sss.pgh.pa.us>
	<867290.1642689136@sss.pgh.pa.us>
	<20220120192736.msyesvdlljn6tptw@alap3.anarazel.de>
	<926839.1642708567@sss.pgh.pa.us>
	<1075553.1642717844@sss.pgh.pa.us>
	<20220210023537.GA3222837@rfd.leadboat.com>
	<1709793.1644523137@sss.pgh.pa.us>
	<20220210223806.ikpf57pz2ilamqam@alap3.anarazel.de>
	<20220210225254.pds2dowte5yophmr@alap3.anarazel.de>

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





view thread (20+ messages)

Message-ID: <1953533.1644541040@sss.pgh.pa.us>
Permalink:  ../1953533.1644541040@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1953533.1644541040@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, noah@leadboat.com, thomas.munro@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f
  In-Reply-To: <1953533.1644541040@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox