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 1iSrik-0006NH-9s for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2019 00:01:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSrij-0000LH-2f for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2019 00:01:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSrii-0000L9-6C for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2019 00:01:44 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSrif-0005yG-9W for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2019 00:01:43 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C9B224D6; Thu, 7 Nov 2019 19:01:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 07 Nov 2019 19:01:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=8o923L0gy5W/Odg57lwUjFrozyn +8nfr/NuPxNWRZKA=; b=BkMTpGW74H84fCJcaSB84CtNwFE4ggx6Hhf/E9jYrZy 8WKCj/IePy5dNgZn4l43fGCJFOajRgLOZGO9SM8RJfb/ifTMfpe6Rj9vJiLF9Vlq 4GnlAomhYqA8jDKkVlttaL/8TN1fV0bQ+yJdlDasM0ftepEu3qOhM5eQwlyZKZvc BlgfFwAeidIvxzGBAHfThb7o13FgqkEONUxPiRo2ebfCy/iH5OT3gtf2XTw850MY aPA8mGlsJIE8hVP4vZeQK5ugmUdWsSc+ppLGnerNNPznaeLF+6DuGEiobj97uHyL otrrrYOqGurIW15+ufK6UBokpiNBlcn7Cfl2e+W0FmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8o923L 0gy5W/Odg57lwUjFrozyn+8nfr/NuPxNWRZKA=; b=yrWhu6wwDM7KouI3voBEht xqabbHIUYyxEfk3U6gqSmXOrTY3ubexpAUOc09JFcjPH/Gxy7JpGfYLH+HQ0jaFs v374EVvFaxX1KzIzftSMhuc118xjzyNdxHeI3oGx6EyyOAOhsskkad1ROixzX8/M zeUNkzNPS1t8jIoicN/yHIiQ3S1NE8cLN4Eq7uEoq9SfGTCFSfmM10hLeOMFiehC qKWB1Ty2QFcqslUiV8kTPOxdyAewLbrmS8hYVZbNVfCx1KcxILaqqtq+BLLbDgOq V4dRmAKhSfkOXFvt4COwlVkhnosGlx9IkKBbBhe8mTeRb6zIIz0/nKX0Y+i3HYog == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvtddgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D3E6306005C; Thu, 7 Nov 2019 19:01:36 -0500 (EST) Date: Fri, 8 Nov 2019 09:01:33 +0900 From: Michael Paquier To: Tom Lane Cc: Andres Freund , pgsql-hackers@lists.postgresql.org Subject: Re: SKIP_LOCKED test causes random buildfarm failures Message-ID: <20191108000133.GS1768@paquier.xyz> References: <25294.1573077278@sss.pgh.pa.us> <20191106230111.2kmd6hnriqttw6ys@alap3.anarazel.de> <20191107013942.GA1768@paquier.xyz> <12732.1573145425@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xPLL5cPndR2UZ7Mw" Content-Disposition: inline In-Reply-To: <12732.1573145425@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --xPLL5cPndR2UZ7Mw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 07, 2019 at 11:50:25AM -0500, Tom Lane wrote: > Michael Paquier writes: >> 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. >=20 > I kind of feel that NOTICE is more semantically appropriate, but > perhaps there's an argument for keeping it at WARNING. Perhaps. Well, that's the same level as the one used after the permission checks on the relation vacuumed. > 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. Makes sense.=20 > 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? I think that there is no risk regarding the stability of the output because we use LOCK before from a first session on the relation to vacuum in a second session. So if autovacuum runs in parallel, the consequence would be a small slow down while waiting on the lock to be taken. And per the way the test is ordered, it seems to me that it makes the most sense to disable autovacuum as it would just get in the way. In this case I think that it is actually better to show the messages as that makes the tests more verbose and we make sure to test their format, even if we could just rely on the fact that VACUUM should just be blocking or non-blocking. -- Michael --xPLL5cPndR2UZ7Mw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3EsF0ACgkQnvQgOdby QH32qA//ZJYnz7ztXlm6T6RK8cCoDl+G8VM+E526eUxrKgPcpM68NT7/qwCvSrP5 fb8RrLQOuD4vjUQLuT9Qs1MNzs6E6H1SCtSqaXAeqrzRSldMnzpiAK64UTLFq0zc F0nhHcYXiknQ3n1jDkAE2udumaEXpfucDkGA8ow5JhgXatWsTaEMWmOn5aTEuM2S XcOERKIo/hWH6ugHR3rUZyhQkEwz+7fRnpdaXPeU8/Rsr53/QICjqMGOH9VeJPCl ZiFrpL6GeWU//QkY/yINrlO9A7ctUnuNEvNtRW68zdNLSjR52GI4DgWCO5Th5KFF 9/zeL20B3PadHoDBAprC+0CbxQ2APIe7M2X8sZ3hIaSgDptT63g9sKfxYGB/X+7k t9Nect0/Iw03v1J2bvhFlpFppNR3i4i8CGiR7GVxHEcgzTLxWaWM2NqJYjSYGffA lwmV1+i4iMevyojBGNGNa+EQqYvB3yB3GKMmdHElMbLU5kKHZF4m8mcDO/J7s9RW VvL37imsU5zR2VgUeK46sDB0JoGJBak32GH0EmhOUbD+0XXgkcWb+rW6Y8uWLMOH NjsRUyZFsX1HtaWu+lIDaX4YBngqUB4dbv43UGii1sXZXiUx+CO0uOhVWWcoA3dL GgpXGpV1ko45cWR03j1BTT2X6ybhvw4LsKAEG4nAyquNi8k4C2E= =vLo5 -----END PGP SIGNATURE----- --xPLL5cPndR2UZ7Mw--