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 1nrtmp-0006Rw-1w for pgsql-hackers@arkaria.postgresql.org; Fri, 20 May 2022 03:58:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrtmm-0003En-D7 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 May 2022 03:58:44 +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 1nrtmm-0003E3-3b for pgsql-hackers@lists.postgresql.org; Fri, 20 May 2022 03:58:44 +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 1nrtmc-0006qS-Pz for pgsql-hackers@lists.postgresql.org; Fri, 20 May 2022 03:58:40 +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 24K3wO0f265571; Thu, 19 May 2022 23:58:25 -0400 From: Tom Lane To: Andres Freund cc: Christoph Berg , pgsql-hackers@lists.postgresql.org Subject: Re: 15beta1 test failure on mips in isolation/expected/stats In-reply-to: <20220520034727.u7wjnrcskdscw5sx@alap3.anarazel.de> References: <250690.1653010951@sss.pgh.pa.us> <20220520034727.u7wjnrcskdscw5sx@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 19 May 2022 20:47:27 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <265569.1653019104.1@sss.pgh.pa.us> Date: Thu, 19 May 2022 23:58:24 -0400 Message-ID: <265570.1653019104@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-05-19 21:42:31 -0400, Tom Lane wrote: >> Even more interesting, the repeatability varies with the settings >> of max_connections and max_prepared_transactions. > That is indeed quite odd. >> At low values (resp. 20 and 0) I've not been able to make it happen at all, >> but at 100 and 2 it happens circa three times out of four. > Is this the only permutation that fails? No, but those values definitely seem to affect the probability of failure. I just finished a more extensive series of runs, and got: successes/tries with max_connections/max_prepared_transactions: 5/5 OK with 20/2 5/5 OK with 100/0 3/5 OK with 100/2 4/5 OK with 200/2 5/6 OK with 100/10 5/6 OK with 50/2 6/10 OK with 100/2 It seems like the probability decreases again if I raise either number further. So I'm now guessing that this is purely a timing issue and that somehow 100/2 is near the sweet spot for hitting the timing window. Why those settings would affect pgstats at all is unclear, though. regards, tom lane