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 1s1cbX-00Da12-67 for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Apr 2024 01:48:22 +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 1s1cbU-003Bg9-Bq for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Apr 2024 01:48:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1cbU-003Bg1-2N for pgsql-hackers@lists.postgresql.org; Tue, 30 Apr 2024 01:48:20 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1cbR-000lrt-R0 for pgsql-hackers@postgresql.org; Tue, 30 Apr 2024 01:48:20 +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 43U1mDic1540703; Mon, 29 Apr 2024 21:48:13 -0400 From: Tom Lane To: Richard Guo cc: Michael Paquier , PostgreSQL-development , Alexander Lakhin Subject: Re: A failure in prepared_xacts test In-reply-to: References: <1068977.1714367460@sss.pgh.pa.us> <1076837.1714368760@sss.pgh.pa.us> <1222343.1714398316@sss.pgh.pa.us> Comments: In-reply-to Richard Guo message dated "Tue, 30 Apr 2024 08:54:47 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1540701.1714441693.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 29 Apr 2024 21:48:13 -0400 Message-ID: <1540702.1714441693@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > +1. I'm kind of worried that the expansion of parallelization could > lead to more instances of instability. Alexander mentioned one such > case at [1]. I haven't looked into it though. > [1] https://www.postgresql.org/message-id/cbf0156f-5aa1-91db-5802-82435d= da03e6%40gmail.com The mechanism there is pretty obvious: a plancache flush happened at just the wrong (right?) time and caused the output to change, as indeed the comment acknowledges: -- currently, this fails due to cached plan for "r.f1 + 1" expression -- (but if debug_discard_caches is on, it will succeed) I wonder if we shouldn't just remove that test case as being too unstable -- especially since it's not proving much anyway. regards, tom lane