Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAXxe-0003Yg-0a for pgsql-committers@arkaria.postgresql.org; Thu, 20 Jan 2022 13:58:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nAXxc-0000N5-EO for pgsql-committers@arkaria.postgresql.org; Thu, 20 Jan 2022 13:58:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAXxc-0000Mw-7K for pgsql-committers@lists.postgresql.org; Thu, 20 Jan 2022 13:58:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAXxZ-0008Ek-TU for pgsql-committers@lists.postgresql.org; Thu, 20 Jan 2022 13:58:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 20KDwdJi855584; Thu, 20 Jan 2022 08:58:39 -0500 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: TAP tests: check for postmaster.pid anyway when "pg_ctl start" f In-reply-to: References: Comments: In-reply-to Thomas Munro message dated "Fri, 21 Jan 2022 00:08:56 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <855582.1642687119.1@sss.pgh.pa.us> Date: Thu, 20 Jan 2022 08:58:39 -0500 Message-ID: <855583.1642687119@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Thu, Jan 20, 2022 at 10:29 AM Tom Lane wrote: >> TAP tests: check for postmaster.pid anyway when "pg_ctl start" fails. > This seems to have caused some kind of problem for the 017_shm.pl test: Hmm. I think the problem is that poll_start() thinks it can just call start() a second time after a failure. If it wasn't a true failure but a timeout, then _pid is now set and the second call complains. I'm not entirely sure how that scenario worked before --- maybe pg_ctl is not picky about whether the running postmaster is the same one it started?? Anyway it seems like we need some less-fuzzy thinking in poll_start. Haven't absorbed enough caffeine to decide what. A possible band-aid to get rid of the buildfarm failures is to force a higher PGCTLTIMEOUT during poll_start. regards, tom lane