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 1khJNZ-0003tZ-DH for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2020 21:28:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khJNY-000882-CY for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2020 21:28:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khJNY-00087v-5A for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2020 21:28:08 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khJNW-00028K-6h for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2020 21:28:07 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 88C865C01A0; Mon, 23 Nov 2020 16:28:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 23 Nov 2020 16:28:05 -0500 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:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=N77PyLyLHfGWNwgD0 pn01Bw+IlAMkRO/nd14iuItf6g=; b=WEbqjbuR6CTj9mJFbBpHEPd3gzu6rvDhM gnEELCUzs3h6GlNifUg1jFJ9VyFRtTVqUrSokuAwqhkUATg8CDUu3mlp/cH/jMwp 3aBgGIZaEX5ew/GEU3ykBkr2dcc684Ml/GTkO80Z4Dy5b4E/wEIFGBL9D+vV9Y96 /K+3D1xICG3EkQwYXj6MPVfuARfXkZU3Q+BKlcPG1f9wxF+4SQHCrPWstm4y11cY HcYcUT7L6gUHlUylO0SvFw53hTgovi1FSgkz57zZ1YmzjGSCPAWRxe69EuXIBsDa GHISSgzFmWtIO+YclR8aSmxicPx5z2FtX/x8+7JuaxX5VlYHhGjdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegjedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggujggfsehttdertddtredvnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeevgfelveegueejgefhgeetgefhgeehieefheehleetteei udeiiefhgffgheffteenucfkphepudeltddrleehrddukedrjeelnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.18.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D1A2328005A; Mon, 23 Nov 2020 16:28:04 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6BF952A1006; Mon, 23 Nov 2020 18:28:02 -0300 (-03) Date: Mon, 23 Nov 2020 18:28:02 -0300 From: Alvaro Herrera To: Tom Lane Cc: Michael Paquier , Andres Freund , Dmitry Dolgov <9erthalion6@gmail.com>, James Coleman , Pg Hackers Subject: Re: "as quickly as possible" (was: remove spurious CREATE INDEX CONCURRENTLY wait) Message-ID: <20201123212802.GA8237@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <129515.1606166429@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Nov-23, Tom Lane wrote: > Alvaro Herrera writes: > > On 2020-Nov-19, Michael Paquier wrote: > >> By the way, it strikes me that you could just do nothing as long as > >> (log_min_messages > DEBUG1), so you could encapsulate most of the > >> logic that plays with the lock tag using that. > > > Good idea, done. > > I'm less sure that that's a good idea. It embeds knowledge here that > should not exist outside elog.c; moreover, I'm not entirely sure that > it's even correct, given the nonlinear ranking of log_min_messages. Well, we already do this in a number of places. But I can get behind this: > Maybe it'd be a good idea to have elog.c expose a new function > along the lines of "bool message_level_is_interesting(int elevel)" > to support this and similar future optimizations in a less fragile way.