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 1neoCg-0005e2-OH for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Apr 2022 01:23:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1neoCf-0007gh-I8 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Apr 2022 01:23:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neoCf-0007gY-8W for pgsql-hackers@lists.postgresql.org; Thu, 14 Apr 2022 01:23:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neoCd-0006fM-Ef for pgsql-hackers@lists.postgresql.org; Thu, 14 Apr 2022 01:23: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 23E1NCeZ1401380; Wed, 13 Apr 2022 21:23:12 -0400 From: Tom Lane To: Andres Freund cc: Peter Geoghegan , David Rowley , PostgreSQL Hackers Subject: Re: Intermittent buildfarm failures on wrasse In-reply-to: <20220414010505.s7z24jxrfsjbzz7l@alap3.anarazel.de> References: <1349964.1649890446@sss.pgh.pa.us> <9F59C4BB-3C82-44B0-9B10-4A2CCC3DE552@anarazel.de> <1364997.1649893086@sss.pgh.pa.us> <1365924.1649893883@sss.pgh.pa.us> <1374062.1649896550@sss.pgh.pa.us> <20220414010505.s7z24jxrfsjbzz7l@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 13 Apr 2022 18:05:05 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1401378.1649899392.1@sss.pgh.pa.us> Date: Wed, 13 Apr 2022 21:23:12 -0400 Message-ID: <1401379.1649899392@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-04-13 20:35:50 -0400, Tom Lane wrote: >> It seems like a SQL-accessible function could be written >> and then called before any problematic VACUUM. I like this better >> for something we're thinking of jamming in post-feature-freeze; >> we'd not be committing to the feature quite as much as if we >> added a VACUUM option. > We could otherwise just disable IOS for that query, for now. The entire point of that test case is to verify the shape of the IOS plan, so no that's not an acceptable answer. But if we're looking for quick hacks, we could do update pg_class set relallvisible = relpages where relname = 'tenk1'; just before that test. I'm still suspicious of the pgstat changes, though. I checked into things here by doing initdb edit postgresql.conf to set log_autovacuum_min_duration = 0 pg_ctl start && make installcheck-parallel and what I see is that the first reported autovacuum activity begins exactly one minute after the postmaster starts, which is what I'd expect given the autovacuum naptime rules. On my machine, of course, the installcheck-parallel run is long gone by then. But even on the much slower wrasse, we should be well past create_index by the time any autovac worker launches --- you can see from wrasse's reported test runtimes that only about 10 seconds have elapsed when it get to the end of create_index. This suggests to me that what is holding the (presumed) conflicting snapshot must be the autovac launcher, because what else could it be? So I'm suspicious that we broke something in that area, though I am baffled why only wrasse would be telling us so. regards, tom lane