Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSkzR-0007Vp-RQ for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2019 16:50:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSkzQ-0004ne-Jw for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2019 16:50:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSkzQ-0004nW-7D for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2019 16:50:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iSkzN-0005Tu-Nx for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2019 16:50:31 +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 xA7GoPSV012733; Thu, 7 Nov 2019 11:50:25 -0500 From: Tom Lane To: Michael Paquier cc: Andres Freund , pgsql-hackers@lists.postgresql.org Subject: Re: SKIP_LOCKED test causes random buildfarm failures In-reply-to: <20191107013942.GA1768@paquier.xyz> References: <25294.1573077278@sss.pgh.pa.us> <20191106230111.2kmd6hnriqttw6ys@alap3.anarazel.de> <20191107013942.GA1768@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Thu, 07 Nov 2019 10:39:42 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12731.1573145425.1@sss.pgh.pa.us> Date: Thu, 07 Nov 2019 11:50:25 -0500 Message-ID: <12732.1573145425@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Wed, Nov 06, 2019 at 03:01:11PM -0800, Andres Freund wrote: >> I don't know what lead us to doing so, but it doesn't seem reasonable to >> allow the user to see whether the table has actually been vacuumed. I >> would assume that one uses SKIP_LOCKED partially to avoid unnecessary >> impacts in production due to other tasks starting to block on e.g. a >> VACUUM FULL, even though without the "ordered queueing" everything could >> just go on working fine. I'm not sure that indicates whether WARNING or >> NOTICE is the best choice. > Good question. That's a historical choice, still I have seen cases > where those warnings are helpful while not making the logs too > verbose to see some congestion in the jobs. I kind of feel that NOTICE is more semantically appropriate, but perhaps there's an argument for keeping it at WARNING. >> So I'd be inclined to go with the client_min_messages approach? > The main purpose of the tests in regress/ is to check after the > grammar, so using client_min_messages sounds like a plan. We have > a second set of tests in isolation/ where I would actually like to > disable autovacuum by default on a subset of tables. Thoughts about > the attached? I do not want to fix this in the main tests by disabling autovacuum, because that'd actually reduce the tests' cross-section. The fact that this happens occasionally is a Good Thing for verifying that the code paths actually work. So it seems that there's a consensus on adjusting client_min_messages to fix the test output instability --- but we need to agree on whether to do s/WARNING/NOTICE/ first, so we can know what to set client_min_messages to. As for the case in the isolation test, shouldn't we also use client_min_messages there, rather than prevent the conflict from arising? Or would that test fail in some larger way if autovacuum gets in the way? regards, tom lane