Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaL3j-0001oe-0A for pgsql-committers@arkaria.postgresql.org; Thu, 28 Nov 2019 14:46:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iaL3g-0004RK-PI for pgsql-committers@arkaria.postgresql.org; Thu, 28 Nov 2019 14:46:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaL3g-0004RD-Hg for pgsql-committers@lists.postgresql.org; Thu, 28 Nov 2019 14:46:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaL3d-0000wj-Hr; Thu, 28 Nov 2019 14:46:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xASEk9nd030915; Thu, 28 Nov 2019 09:46:09 -0500 From: Tom Lane To: Amit Kapila cc: Amit Kapila , Pavel Stehule , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add tests for '-f' option in dropdb utility. In-reply-to: References: Comments: In-reply-to Amit Kapila message dated "Thu, 28 Nov 2019 19:19:48 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30913.1574952369.1@sss.pgh.pa.us> Date: Thu, 28 Nov 2019 09:46:09 -0500 Message-ID: <30914.1574952369@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Kapila writes: > The message expected by this test was: "FATAL: terminating connection > due to administrator command" which seems to be fine in most cases but > not all. I think the correct question to ask is "why not all cases"? > I think we just need to change the expected message the same as in > 013_crash_restart.pl to make this test pass on all platforms. If DROP FORCE sometimes gives victim sessions the impression that the server crashed, rather than that they were kicked off intentionally, I think that's totally unacceptable. "Fixing" this by changing the test to allow it is not the answer, and if we can't find a better answer, I'm going to vote to revert the feature. regards, tom lane