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 1lO2d6-0002OM-DZ for pgsql-committers@arkaria.postgresql.org; Sun, 21 Mar 2021 18:16:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lO2d5-0004yT-AB for pgsql-committers@arkaria.postgresql.org; Sun, 21 Mar 2021 18:16:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lO2d5-0004yM-4j for pgsql-committers@lists.postgresql.org; Sun, 21 Mar 2021 18:16:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lO2d2-0004IU-Ig; Sun, 21 Mar 2021 18:16:46 +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 12LIGfC7387849; Sun, 21 Mar 2021 14:16:41 -0400 From: Tom Lane To: Andrew Dunstan cc: tomas.vondra@postgresql.org, pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Unbreak recovery test on Windows In-reply-to: <5b748470-7335-5439-e876-6a88c951e1c5@dunslane.net> References: <383897.1616344715@sss.pgh.pa.us> <5b748470-7335-5439-e876-6a88c951e1c5@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Sun, 21 Mar 2021 13:06:46 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <387847.1616350601.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 21 Mar 2021 14:16:41 -0400 Message-ID: <387848.1616350601@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > 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. IIUC, that'd completely destroy the point of the test, which is to make sure we clean up when a backend dies unexpectedly. If we allow the psql's to exit then the backend might be able to complete normal cleanup before we can SIGKILL it. Probably the best thing for now is to revert your change and instead just skip the whole test script on Windows. regards, tom lane