Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vH2QQ-00C4PX-NJ for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Nov 2025 16:01:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vH2QO-008zpl-II for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Nov 2025 16:01:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vH2QO-008zpd-6L for pgsql-hackers@lists.postgresql.org; Thu, 06 Nov 2025 16:01:23 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vH2QK-006Kf4-1q for pgsql-hackers@lists.postgresql.org; Thu, 06 Nov 2025 16:01:22 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 70A6B14001DE; Thu, 6 Nov 2025 11:01:18 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 06 Nov 2025 11:01:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1762444878; x=1762531278; bh=C XdjEc6C8S/AC+I3KH64DOskkeTuehpQeutrRhunJSU=; b=1/5dUQVBcFH27gc7L tM852Z4t99xwPyhy6Sfcmv/jdpPCtEK15hnBS3WDikJUX/kJ68+hR7W4JvPXxUH2 Aq9SkfYKkCRqNOjr393QFnqrVjkZIwIKul8xnkJYW1RSTWv0/YSacaGLTNdPeIP3 YDDaNO3s5X3OlHtXS+fGIHrWni30QYG/oy5W9B+Z273P0XU3veRAjumfCWOG2v1M 2r+CGbewLl91gJ6qaYdgkHZymS5So+2s7mHsBjor73vVpVOBfywTjY6+vKoOlmQK C/ttafHJFnQGXctC+DHGiCEsettLLlZEoxY6WDUX7+OWH7ZkDmuL4CzlJJiDUZUa KBuiA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddukeejvdduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeekfffg udffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeegpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdp rhgtphhtthhopegvuhhlvghrsegvuhhlvghrthhordgtohhmpdhrtghpthhtohepjhgrph hinhhliheshhhothhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgv rhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Nov 2025 11:01:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1762444875; bh=smpwC1JGWPF0sE0MNUM/aWr+FNyrDkDSGwt8mez1KdM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=KMj/4uIDdjmNnabFty59doE/tAHoxGgOI9A4rYn8xmcYvUYgvYLmSsx1pBq3aQOcQ R+geflZChqzmREJ+W83t0Bp3MDHQgXsF+jhd+x+mKSfwlPFSL+i2/otWV7Us5Dwc+t 8UFdEltfE+/ZSmDi27pfp28ulCGgxxyT0/cFs4/ij6Ea/fEOmD3gX0M8SaTVnM/dP6 uSVhwi/iGruoDR3hs8umMhsnmQAb5ppsRo2pKQmrqcu7BMg2W7vJYNtMgpVqZ3Ath7 +b+nU5bHW2cyYiu8ZCeWwxnsxDYq3lo3TFiI01v+eMPaYY/uLrAKmAI16mm4hLBmFf d9hNw1U2N4rog== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 2DBE176; Thu, 06 Nov 2025 18:01:15 +0200 (EET) Date: Thu, 6 Nov 2025 17:01:15 +0100 From: Alvaro Herrera To: Euler Taveira Cc: japin , Andres Freund , pgsql-hackers@lists.postgresql.org Subject: Re: log_min_messages per backend type Message-ID: <202511061543.defy6sciy3p7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <72e809ff-c842-4f98-93f1-26a3cb3d92d0@app.fastmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Nov-06, Euler Taveira wrote: > + Valid values are a comma-separated list of backendtype:level > + and a single level. The list allows it to use > + different levels per backend type. Only the single level > + is mandatory (order does not matter) and it is assigned to the backend > + types that are not specified in the list. > + Valid backendtype values are archiver, > + autovacuum, backend, > + bgworker, bgwriter, > + checkpointer, ioworker, > + syslogger, slotsyncworker, > + startup, walreceiver, > + walsender, walsummarizer, and > + walwriter. > + Valid level values are DEBUG5, > + DEBUG4, DEBUG3, DEBUG2, > + DEBUG1, INFO, NOTICE, > + WARNING, ERROR, LOG, > + FATAL, and PANIC. Each level includes > + all the levels that follow it. The later the level, the fewer messages are sent > + to the log. The default is WARNING for all backend types. I would use type:level rather than "backendtype". Also, the glossary says we have "auxiliary processes" and "backends", so from the user perspective, these types are not all backends, but instead process types. I think the list of backend types is pretty hard to read. What do you think about using to create a friendlier representation? So you would say something like "Valid types are listed in the table below, each corresponding to either postmaster, an auxiliary process type or a backend". (Eh, wait, you seem not to have "postmaster" in your list, what's up with that?) (I'm not sure about making the log levels also a , because for that list the order matters, and if we have more than one column then the order is going to be ambiguous, and if we have just one column it's going to be too tall. But maybe it's not all that bad?) -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/