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 1pWN3o-0005CS-CF for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Feb 2023 19:51:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pWN3n-0001u2-70 for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Feb 2023 19:51:51 +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 1pWN3m-0001sz-Tc for pgsql-hackers@lists.postgresql.org; Sun, 26 Feb 2023 19:51:50 +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 1pWN3k-0004IB-Uf; Sun, 26 Feb 2023 19:51:49 +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 31QJpjZI030783; Sun, 26 Feb 2023 14:51:45 -0500 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org, Michael Paquier , Fujii Masao Subject: Re: tests against running server occasionally fail, postgres_fdw & tenk1 In-reply-to: <20230226194340.u44bkfgyz64c67i6@awork3.anarazel.de> References: <20221209001511.n3vqodxobqgscuil@awork3.anarazel.de> <20230226194340.u44bkfgyz64c67i6@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 26 Feb 2023 11:43:40 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30781.1677441105.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 26 Feb 2023 14:51:45 -0500 Message-ID: <30782.1677441105@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-12-08 16:15:11 -0800, Andres Freund wrote: >> The most frequent case is postgres_fdw, which somewhat regularly fails = with a >> regression.diff like this: >> WHERE application_name =3D 'fdw_retry_check'; >> pg_terminate_backend >> ---------------------- >> - t >> -(1 row) >> +(0 rows) > Unless somebody comes up with a way to make the test more reliable prett= y > soon, I think we should just remove it. It's one of the most frequently > flapping tests at the moment. If that's the only diff, we could just hide it, say by writing do $$ begin PERFORM pg_terminate_backend(pid, 180000) FROM pg_stat_activity WHERE application_name =3D 'fdw_retry_check'; end $$; The actually important thing is the failure check after this; we don't care that much whether the initially-created connection is still live at this point. regards, tom lane