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 1lO1XV-0000A5-1B for pgsql-committers@arkaria.postgresql.org; Sun, 21 Mar 2021 17:06:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lO1XT-0006VG-HF for pgsql-committers@arkaria.postgresql.org; Sun, 21 Mar 2021 17:06:55 +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 1lO1XT-0006V9-BZ for pgsql-committers@lists.postgresql.org; Sun, 21 Mar 2021 17:06:55 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lO1XP-0007Aw-MW for pgsql-committers@lists.postgresql.org; Sun, 21 Mar 2021 17:06:54 +0000 X-Originating-IP: 99.10.92.30 Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net [99.10.92.30]) (Authenticated sender: adsend@dunslane.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id B55161BF21A; Sun, 21 Mar 2021 17:06:47 +0000 (UTC) Subject: Re: pgsql: Unbreak recovery test on Windows To: Tom Lane , tomas.vondra@postgresql.org Cc: pgsql-committers@lists.postgresql.org References: <383897.1616344715@sss.pgh.pa.us> From: Andrew Dunstan Message-ID: <5b748470-7335-5439-e876-6a88c951e1c5@dunslane.net> Date: Sun, 21 Mar 2021 13:06:46 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <383897.1616344715@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/21/21 12:38 PM, Tom Lane wrote: > Andrew Dunstan writes: >> Unbreak recovery test on Windows > Hmm, looks like this broke things on other machines. > crake and sifaka (so far) are showing > > # Running: pg_ctl kill KILL 2237831 > ok 3 - killed process with KILL > ack Broken pipe: write( 13, '\\q > ' ) at /usr/share/perl5/vendor_perl/IPC/Run/IO.pm line 549. > > which looks like a race condition: did we manage to stuff the "\q" > command down the pipe before killing the psql process, or not? > > Ugh.  Is there any reason we need to do those kills before we end the psql processes? If not I'm tempted just to move them - after the psql's are finished it should be safe. At any rate I'll go and test that. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com