Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1JdA-00BDvs-1l for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Apr 2024 05:32:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s1Jd7-00FMJI-CO for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Apr 2024 05:32:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1Jd7-00FMJA-2r for pgsql-hackers@lists.postgresql.org; Mon, 29 Apr 2024 05:32:45 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1Jd5-000YVj-Kb for pgsql-hackers@postgresql.org; Mon, 29 Apr 2024 05:32:44 +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 43T5WeKO1076838; Mon, 29 Apr 2024 01:32:40 -0400 From: Tom Lane To: Michael Paquier cc: Richard Guo , PostgreSQL-development Subject: Re: A failure in prepared_xacts test In-reply-to: References: <1068977.1714367460@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Mon, 29 Apr 2024 14:25:10 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1076836.1714368760.1@sss.pgh.pa.us> Date: Mon, 29 Apr 2024 01:32:40 -0400 Message-ID: <1076837.1714368760@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > I don't disagree with your point, still I'm not sure that this can be > made entirely bullet-proof. Anyway, I think that we should still > improve this test and make it more robust for parallel operations: > installcheck fails equally on HEAD if there is a prepared transaction > on the backend where the tests run, and that seems like a bad idea to > me to rely on cluster-wide scans for what should be a "local" test. True, it's antithetical to the point of an "installcheck" test if unrelated actions in another database can break it. So I'm fine with tightening up prepared_xacts's query. I just wonder how far we want to try to carry this. (BTW, on the same logic, should ecpg's twophase.pgc be using a prepared-transaction name that's less generic than "gxid"?) regards, tom lane