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 1nfOwT-00039F-2c for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2022 16:37:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nfOwR-0001RG-Sc for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2022 16:37:03 +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 1nfOwR-0001R7-Ja for pgsql-hackers@lists.postgresql.org; Fri, 15 Apr 2022 16:37:03 +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 1nfOwL-0002OA-GF for pgsql-hackers@lists.postgresql.org; Fri, 15 Apr 2022 16:37:03 +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 23FGaqJg1650517; Fri, 15 Apr 2022 12:36:52 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Noah Misch , Peter Geoghegan , David Rowley Subject: Re: Intermittent buildfarm failures on wrasse In-reply-to: References: <1521388.1649953580@sss.pgh.pa.us> <1547912.1649971995@sss.pgh.pa.us> <1553951.1649975018@sss.pgh.pa.us> <1570894.1649986347@sss.pgh.pa.us> <20220415015249.kfsqxujrf2bn2wz6@alap3.anarazel.de> <20220415024515.GA862547@rfd.leadboat.com> <20220415051205.6abhlilh6fnjgohr@alap3.anarazel.de> <20220415052125.GD862547@rfd.leadboat.com> <1637671.1650032132@sss.pgh.pa.us> <1643686.1650036220@sss.pgh.pa.us> Comments: In-reply-to Andres Freund message dated "Fri, 15 Apr 2022 12:22:41 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1650515.1650040612.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Apr 2022 12:36:52 -0400 Message-ID: <1650516.1650040612@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On April 15, 2022 11:23:40 AM EDT, Tom Lane wrote: >> The something is the logical replication launcher. In the failing runs= , >> it is advertising xmin =3D 724 (the post-initdb NextXID) and continues = to >> do so well past the point where tenk1 gets vacuumed. > That explains it. Before shmstat autovac needed to wait for the stats co= llector to write out stats. Now it's near instantaneous. So the issue prob= ably existed before, just unlikely to ever be reached. Um, this is the logical replication launcher, not the autovac launcher. Your observation that a sleep in get_database_list() reproduces it confirms that, and I don't entirely see why the timing of the LR launcher would have changed. (On thinking about it, I suppose the AV launcher might trigger this too, but that is not the PID I saw in testing.) > We can't just ignore database less xmins for non-shared rels, because wa= lsender propagates hot_standby_feedback that way. But we can probably add = a flag somewhere indicating whether a database less PGPROC has to be accou= nted in the horizon for non-shared rels. Yeah, I was also thinking about a flag in PGPROC being a more reliable way to do this. Is there anything besides walsenders that should set that flag? regards, tom lane