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 1ng7Lh-00021B-7Q for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Apr 2022 16:02: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 1ng7Lf-0007z2-W3 for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Apr 2022 16:02: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 1ng7Lf-0007yg-Mw for pgsql-hackers@lists.postgresql.org; Sun, 17 Apr 2022 16:02: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 1ng7La-00013s-7s for pgsql-hackers@lists.postgresql.org; Sun, 17 Apr 2022 16:02: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 23HG1ra82132312; Sun, 17 Apr 2022 12:01:53 -0400 From: Tom Lane To: Andres Freund cc: Amit Kapila , Tomas Vondra , pgsql-hackers@lists.postgresql.org Subject: Re: Stabilizing the test_decoding checks, take N In-reply-to: <20220417143236.lp3hksv2h2z7qn6p@alap3.anarazel.de> References: <1958043.1650129119@sss.pgh.pa.us> <20220417143104.eftldj7d73rqtqoc@alap3.anarazel.de> <20220417143236.lp3hksv2h2z7qn6p@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 17 Apr 2022 07:32:36 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2132310.1650211313.1@sss.pgh.pa.us> Date: Sun, 17 Apr 2022 12:01:53 -0400 Message-ID: <2132311.1650211313@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-16 13:11:59 -0400, Tom Lane wrote: >>> We've seen this sort of problem before [2], and attempted to fix it [3] >>> by making these tests ignore empty transactions. But of course >>> auto-analyze's transaction wasn't empty, so that didn't help. >> I don't quite understand this bit - the logic test_decoding uses to >> decide if a transaction is "empty" is just whether a tuple was >> output. And there shouldn't be any as part of auto-analyze, because we >> don't decode catalog changes. I suspect there's something broken in the >> streaming logic (potentially just in test_decoding) around >> skip_empty_xacts. Hmm, I'll defer to somebody who knows that code better about whether there's an actual bug. However ... >>> I think the most expedient way to prevent this type of failure is to run >>> the test_decoding tests with autovacuum_naptime cranked up so far as to >>> make it a non-issue, like maybe a day. >> I'm a bit worried about this approach - we've IIRC had past bugs that >> came only to light because of autovacuum starting. I wonder if we rather >> should do the opposite and reduce naptime so it'll be seen on fast >> machines, rather than very slow ones. It seems likely to me that trying to make a test like this one blind to autovacuum/autoanalyze activity will make it less useful, not more so. Why is such blindness desirable? regards, tom lane