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.96) (envelope-from ) id 1w9mcP-001k7q-25 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 16:16:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9mcO-00AC2x-0U for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 16:16:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9mcN-00AC2p-2m for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 16:16:04 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9mcM-00000000sYy-04IJ for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 16:16:03 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-b9825ba7e8dso525083966b.3 for ; Mon, 06 Apr 2026 09:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775492161; cv=none; d=google.com; s=arc-20240605; b=bHXQaEsTSsQdwT/LcZjtWcXuDok8ha0TGLbHrNnMGBK+B2e//e00ogDWU17sGNHoEk POX7V2Nf/YjVTFSaMCNh9Ncr86uwWFw11GOmdvcJGswniC89xSgZJw+/vkdxs3CHey5M 2L2g5p/HpaYD396ll8ywYrKc9het3Em/HIkA81LQv6WP2r7rhBtpueuRjQrWUb7fuk2B dBExcZml/+Eo9WW+0Ag9Uu47ucAooFjBr+qzjOXNY3JLsyRDMIZPpAsJL9+FG1l6vVix qOPrJcEWGHcXALaT31HvUZyIdmHf3krxiAlRWEIHc0xkDIAIza8rZUQ6ve1Le3tG53pT pyCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9NjLZhlnqOL2XpOpBl9lABb7w27gUx3LzNIcJoQdxII=; fh=x4xgi4tdDukVB0fBuAIe3vORvD36rbbTBlhrrGN8QbM=; b=hzeG4vNLvOU24I0RuumWKScMARseT5e1xOqs8Yl/6yWOCSv/fwE+ls5ZoBESAFkYov KAyCbEro8tkIPv45o58yZcIxwbubpgh8y0cpOi3/reMDFHb3bs+ATMyJZ5zHuzutD4tf 5dpM0H22LkU5AJuIvUxeUO8hS7YneOWpzhT2cHam9advgpkF54VtfwWewhDTa2fBSYcu zWXqCCdigIHb60lqusg9NMxRT7xrQxIKmPgxArHaovLfriHsazTPejOQ9fM77P5PSloo XxTbMs/f4X5gF+qVsd7qoRIhVjAZpvTKMi23R6zyMlrqCWvGTD3SF3VYiROHXdur+6Zj 4ZyA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775492161; x=1776096961; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9NjLZhlnqOL2XpOpBl9lABb7w27gUx3LzNIcJoQdxII=; b=HEWfYsVKcl2JlMPBnM39xMuKrAB8PfuiEUNPyMJlNrqboLmpQ5joiAfh75fsmTdoAs OrJc0qrUUEquZ9ibyBoLsfKs9C+/x1C6LW2BULXNX9jFj9eypDSgfs9zPWyyKOtPz2I3 ewwD9wukWEBquWhUZHlBVH8I4GsamZ4yYP3XgOHwYdVItBsWfFIPcu9XdlwcMKUShUoy SsjCtTcNWFOqoATS5uruzmkxap64420Ih5eIrxz3mNo3AXWMog/a4yoieTlOpTJHmNNR PM8kdswJwXzuWVMe5q4TJxaEU4uDIQwync/5WGvG9E08P1WWMYhveQAc8AkP6xonwBK+ 9Abg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775492161; x=1776096961; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9NjLZhlnqOL2XpOpBl9lABb7w27gUx3LzNIcJoQdxII=; b=krB18fL4c+RLjZrpeB/nfwJo3EgcocqSaxEQD9RbkOsr7qZeSEmyleq954Bz74s7LK Q8K9kQoTd6J6J07etwuE/OIUN3GUfKRHS7mUv/u5DmxJXXEcGCPN9GvAj+IDKLf1YoWY BYUwHthXeCKQ0vDTAJ+I9wQGGzz/fFWtt1rRs0XyGnQpckqH318MXo8dELGjnmvf37mp y0lQJKrpXW9bmL8XFoezvs4EHjpsgP5EsIX4Wd5ftG3tbV3h6rtW8ec+JLyffUlTSp9u TRuC6rPWeAt8fTSlDzqi8K/D1tht5TDCeF1I6wj3cv6KLqk4/hvKIK8lVprEZNNAE2iN WEjA== X-Gm-Message-State: AOJu0YwxG03UadrAs1IBNwnRz120xszwa28ZESnrYpGFx7FjMcAX7CQC 2a6pnhh4ft5/asnyFdByUlMDDNca+RuBTVZi9GNEU/4FZC8aoaQVc6sFyBUf8IOTRynjb9nolwU IVme5jwb3uWEBEA608k4O2Zm0eduVKFMZXw== X-Gm-Gg: AeBDiet/Gvn+N/4ESsgM6AlqYzlN+iJMTL5Fw6vNm0t+fEdBw5WA5tmmVKlhji6qdyk MwepgbGPDx1yAbIeCm/ymn6sWfW2tQU+TYI1H+Vn6vxKo3ibEzQuVbUNkFT2XTmDozmytj+cWzK FnyvKSgKecQYISAu7MQC0/+oj5rLvZbeFPw0TdRrlZhgZ+dV7tJNbXVrnQ765TIfv+iZfN3W3rT oUD5B91X8M7T43SlkXfRLfwG+IjyVrVDlh//m3kziKT1icf60tMdPmSVC8HafnbafA5K4fy6lQr XnNfYCzwCQ0zb4oJZ0xo6392Wu8fxT+o17aS0o8= X-Received: by 2002:a17:907:1b18:b0:b98:595c:a76f with SMTP id a640c23a62f3a-b9c676ec30amr645271166b.16.1775492160397; Mon, 06 Apr 2026 09:16:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Haas Date: Mon, 6 Apr 2026 12:15:47 -0400 X-Gm-Features: AQROBzBUjd7roWR4nTvWqN4epg8UDVZqLmKMhah2gnNxRYJDDvxKgxT7FcROJt0 Message-ID: Subject: Re: pgsql: Reduce log level of some logical decoding messages from LOG to D To: Fujii Masao Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Apr 6, 2026 at 11:57=E2=80=AFAM Fujii Masao = wrote: > This seems similar to Bharath's suggestion in [1]. Yes, I think it's the same idea. > You can already do this by > setting log_min_messages =3D 'warning,walsender:debug1'. With that settin= g, > DEBUG1 logical decoding messages from walsender are logged at LOG, while > backends follow log_min_messages=3Dwarning, so logical decoding SQL funct= ions > don't emit those DEBUG1 messages. > > But probably are you suggesting making this behavior the default? If yes, > one straightforward approach to implement that would be to log these mess= ages > at LOG when AmWalSenderProcess() or AmLogicalSlotSyncWorkerProcess() is t= rue, > and at DEBUG1 otherwise. Yeah. > The downside of this approach is that it becomes harder to suppress these > messages for walsender or slotsync worker if some users want to do that. > For example, raising log_min_messages to FATAL or PANIC would suppress th= em, > but would also hide ERROR messages, which isn't desirable in production. I honestly don't know why anyone would want to do that. If these messages are showing up from background workers often enough to cause a problem, isn't something terribly wrong? It probably means your logical replication connections are constantly getting broken and having to be reestablished. The premise stated in the commit message is that these messages are simply too noisy, and that seems fair to me, because of the possibility of triggering them from SQL. But the idea that these aren't useful to a DBA when troubleshooting actual problems with logical replication seems quite incorrect to me. -- Robert Haas EDB: http://www.enterprisedb.com