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 1jJ4YY-00045J-MY for pgsql-committers@arkaria.postgresql.org; Tue, 31 Mar 2020 00:15:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJ4YX-0007Z9-B7 for pgsql-committers@arkaria.postgresql.org; Tue, 31 Mar 2020 00:15:01 +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 1jJ4YX-0007Yo-60 for pgsql-committers@lists.postgresql.org; Tue, 31 Mar 2020 00:15:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJ4YQ-0003eo-0Z; Tue, 31 Mar 2020 00:15:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02V0Eojm010235; Mon, 30 Mar 2020 20:14:50 -0400 From: Tom Lane To: David Rowley cc: pgsql-committers@lists.postgresql.org, Tomas Vondra Subject: Re: pgsql: Attempt to fix unstable regression tests, take 2 In-reply-to: References: Comments: In-reply-to David Rowley message dated "Mon, 30 Mar 2020 10:41:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10233.1585613690.1@sss.pgh.pa.us> Date: Mon, 30 Mar 2020 20:14:50 -0400 Message-ID: <10234.1585613690@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > Attempt to fix unstable regression tests, take 2 That still isn't working, and I'm starting to think that we're blaming the messenger. To wit, what we are seeing here is that these tests are unstable ... and that's a bug of the tests, not of any adjustments of autovacuum timing. I notice that at least most of the deltas are in test cases that are only a couple weeks old, so they don't have a lot of track record saying that they are stable. Specifically, I notice that in the last couple of failures involving tests on "mcv_lists", we are considering stats on a 5000-row table. With the standard setting default_statistics_target = 100, ANALYZE will take a 3000-row random sample, meaning that its results are *inherently* not 100% reproducible. In the past we have avoided that being a problem for the regression tests by dint of not depending on exact estimation results, but this test is designed to do precisely that. I think what needs to happen here is to revert these changes you've made, and instead either reduce the size of the test table or increase default_statistics_target within this test, so that ANALYZE's sample includes the whole table and is thereby completely stable. (I'd tend to favor the former approach if possible, just to keep a lid on test runtime.) Or we could decide that these tests are a bad idea and toss them completely; but I bet Tomas will object. regards, tom lane