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 1w5EdA-0032Zk-0Y for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 03:10:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5Ed8-00AwIW-19 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 03:10:02 +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 1w5Ed8-00AwI7-0C for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 03:10:02 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5Ed6-00000000taN-2drt for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 03:10:01 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-67d52ba8458so311056eaf.1 for ; Tue, 24 Mar 2026 20:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774408200; cv=none; d=google.com; s=arc-20240605; b=bBQ5JOm7FuKTH9bJh3WrHNXNZCY+gmv+Fx0us1IgYyOFVQHPGAIrY5keKPtK85VVBx P9ZD7yWiYdE9FTloutzrQET9bl5FIlcfuGjiHBvyrnJ1xK8mVM7KG9bYNSOKGJ4JZU4j ZGNIf6E/QQ8cRpPBSX85arPA3A4Q7UQYfW4A+F4jZdpG/29kIPTV3ZFuG/s4Bk8aHPbx 4sTXbXsnl9IEQiyOXzH4XUYSLjLlQTzjXr6dQOeuhY9QQ7/3SQfeNDGL8S/C9dTOPlxO e/O3ew1RQxAXvKWNNIRT2Rdxht5XHh09qs0l8NJo9Slcz0Z/UcYG9Tv9hgcTzvZ5hra9 DApg== 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=0dcPDzl1At75hqCfIAM3IQs5HYRPo9FIvf0mazpD9xE=; fh=x4xgi4tdDukVB0fBuAIe3vORvD36rbbTBlhrrGN8QbM=; b=eOZCMk+jU8CZLQSlj1TKKY5PgldS1UwGi6Ne7afNrEoAzbaGgMhGrStGUs+aFXwLAf q0wo2VGQiHQpWgHzLVd3ctTEskYjpWOp5I8M/3FcmdN235dkvyaNyzqp50IM1Ee2YfGs tBpjsS2x3JdGiluaL0rsvUUc54QWZL/M01sV+flXNpK0hkE72VZCMkqqModT2sR7Mye9 YFR59VTZUOt9Fjl/VDPW7lferpLEtxni+BjZZWZVDrdoapoq8cyY4e0peFGoM45Aq34i f6aqyknRG/lcH+OHOW9XI48/ZpNUPts9DpSZvn7wuYI1UpJ7WIZBSzFerp/GPiPxM05p mAKg==; 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=1774408200; x=1775013000; 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=0dcPDzl1At75hqCfIAM3IQs5HYRPo9FIvf0mazpD9xE=; b=Dv0za9nD9J3v3CW/uS3rxyjNFjd/ymui276WeIBfsGuwYjCN0fdaSC9oYB0Fyl9u4Q XZqs9iqf/B2TY/C2gqNpr6gVN5gHXxUU3xWcYrRdkzkoFJidgioGEwyTcxEjoyaWEaLn zYByqFAXNNuyX8tu9GRrDmo+HHBClT2iOLDQ9d7nwBzuhyRAeqxdhv4MQjbkJneG80TL hidA5wn3vrp7Zpc+OFQ5br02jSz7besNO7eCrrnxdJQwjOWei98ueUIiYr5UO36uQ28i QZRegmJRHA/eNwkwH9oG07F5M223GSGjplsjlk1Fpt2V6a2nbRd5UTDXgIdaUfdmlt4q +Bag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774408200; x=1775013000; 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=0dcPDzl1At75hqCfIAM3IQs5HYRPo9FIvf0mazpD9xE=; b=TZqxkEdBmuK644dn74TMlv2lu77lotqrFsh2qnwD1GFJbHZxVVG0OT3LuTqGo0Lv7N hAPDvt1M6ZLJ92o8NFlPtivUes84PU1Mlvi7fVcw9Pw0JLLSqef7gqbN2PyQ0uegpjQJ BqwAnl7Qp1u9XHkCEMkTPAWwisljVWcGjtCwMm1ZIpFG5RxNJnCVrCycTtsmzSunxveJ MWrlFvVBAvU1P6X7iUWlyh7QfAq1mfmb1AzhS5gyhZumh5tzm3eSK4jQ2cP/nCU2woXx +wKN0sFnuh1HbYrs0HDeiQpQj6egdENSeONf3sJA39XS0A8Tz33RntGPpVOKJ82oIUA5 /2Sw== X-Gm-Message-State: AOJu0YzEHpYsAaF17cbhWZHT+WjAnCJgAZFROkXe7JSNZH47fGP0aXhV mR+hpsYlMnouS4dYhudVHZwbOuF8CUR/a01y+Z6ryYLHfLkHgyOgurhot02botfXT7nF2nuXf/A qsSJHObn0mlbREMYCkl8V4YMtkmJn6zk= X-Gm-Gg: ATEYQzwnoCIHGvXluY/JQ6STRxDuDmWyVaDiUcQHWg/YDoWNlIyT2G7ftsG3E4A2Nla l2R5UXMgWPXwBQAWAIR3bTKt4nS9QHeCbfWZBZp/FExhGddcGgMhdWgAF+9RB723xRCE9yxevwt gbv3RISoPjxStWkSuxp1S5OQ4MLBAH9PdoP/5aY060fHqaynXpHP6af9pXU+p0yOLaXvAfHaQ8M wNLcZTvlb1PIu+Bb05tnIuW5i7pngodeCSBHSRlf3LQQz5N0IeA1rhWdhXaKk+VHCFANUbMuYN6 d4/Hgv5mbca2cXShnQ/nDUpR7bcCF9NxYJRtLbA= X-Received: by 2002:a05:6820:c2c5:20b0:67b:ba7d:442a with SMTP id 006d021491bc7-67df5fb5549mr2404581eaf.39.1774408199901; Tue, 24 Mar 2026 20:09:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bharath Rupireddy Date: Tue, 24 Mar 2026 20:09:48 -0700 X-Gm-Features: AaiRm53z1ra1UGpi0zKTdKdZAHIuNY5BLHKTRmX6gYgE4NG4qLev1jMsrP7jk10 Message-ID: Subject: Re: Reduce log level of some logical decoding messages to DEBUG1 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 Hi, On Mon, Mar 23, 2026 at 8:44=E2=80=AFAM Fujii Masao = wrote: > > > I understand the chattiness of these when the decoding is done using > > functions. But they seem to be useful when decoding using walsender > > and replication connection. Also, it looks to me that the errdetail > > describing various cases like when there are no running transactions, > > when logical decoding will begin using saved snapshot, etc., is > > helpful. > > I agree those messages are useful for developers. Do you think they're al= so > useful for DBAs, and therefore should remain at LOG level? > > > - 1 for another GUC IMHO. How about we find if the logical decoding is > > being done using walsender (a boolean like isDecodingUsingWalSender, > > default being false, set to true when in walsender) and emit them at > > LOG level when set to true. Would something like this work? > > If we want to see those messages when walsender is performing logical > decoding, that should still be possible even if we lower the level to DEB= UG1. > With the recent extension to log_min_messages (commit 38e0190ced7), > we can enable them just for walsender > (e.g., log_min_messages =3D 'warning,walsender:debug1'). I agree with this. One could use the new log_min_messages feature introduced in PG19 if wanted. Perhaps, it's a good idea to add this recommendation to the commit message to help those wanting to enable these logs. I reviewed the v1 patch and it LGTM. Thanks! -- Bharath Rupireddy Amazon Web Services: https://aws.amazon.com