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 1w8O9l-000U0a-17 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 19:56:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8O9i-007uJX-31 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 19:56:43 +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.96) (envelope-from ) id 1w8O9i-007uJM-1s for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 19:56:43 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w8O9f-00000000FnI-3mxs for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 19:56:42 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-b9c04152730so191725766b.0 for ; Thu, 02 Apr 2026 12:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775159799; cv=none; d=google.com; s=arc-20240605; b=OPnBKt/cbtTBYinv/zvn6r7LgV6P5FlB0sOg/W+9Id6ivBNvGmoJ+XgHB2zNjwrmJA /ibuOWgyRJ+bMJPbVTINiZwxJ4gZwXnSYp2R13DHnyBO7j+1kPSuoFDMyXVji4DWsvdV GzkkbuVkHSWU8xDHS4lnu2kPZtmqWrrQ9VxIaGQLY1KCyHJYglrw51xBGLMtSAE2UA3u 3IzHUHzeu9OWHUmzpnfN73VkMKzEYN4DwxbF0BIdvcFwHwQcsOAw5r7xeld0pVMNVMkd DT/NT+GZCSkUk416f9mRiooF1QYeeBBP+ODW28sjAqJc1fJ1/30c5/IagBp9NHtaZhvz PWqg== 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=4YoXNBPvdLN4cKz8AjAEwPTa6VEggaSGXs8hUMy+vRo=; fh=q0BGKoh8s8kCriVv5tuN+9rCwy37o/hDKmpQq6SCn8c=; b=VGGw5W375bUQrSoFVI3gMybvSXL6YkTj0HmELDs1XRxb99IFrnht/KqOKFVeX3jaK6 tGO79r3LFl7L5O+92+GiWugOH5Z7EkwvtmwMkSiTO+EUe2ninMwD4VCnBHKRH8GEgMwS colI6kV0bP2T0g1EeThbE17fLVoK1DF1iWePZho8Qw7QWWUD9/ZAa+70FkhHsp7nPEVc mWDLxTHJkb2NkMHCQ1gWzorBlYlrTqCnDQkhgo58AwCdeZjRTlrE93RMDi6rw9fpxR+9 v5v8bRTjqS45Oh2I4xQZOGoUw2FVp56wd/j8Al3pt8UzW6DL1ZVd74KVjaPVVbj9UhnA HXbA==; 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=1775159799; x=1775764599; 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=4YoXNBPvdLN4cKz8AjAEwPTa6VEggaSGXs8hUMy+vRo=; b=UrJ4WuoM97x0C5y8VdngS4dnNnl/4APIhPSapU67l/YEVk2jqTSRADc5RlszMYdVI8 Jq74+HSm0GzKQak5nF+1Ad4C/ghmOmSAjzOmc1bYTr03ib+4RO2lONawe+5s75LCKkwE TwoltWJFMR/PAmoTZKNr8A0wmsaJFngFJN96P9Acjjw9XzZRsEQfeMbeI8Zz+2IoX0AD TPajYA8wwMSJIgjS+w58WcQcu5IJAKkMMjs0CaSe3kbA3fnWJaBg8fUO5SkzgSo+CWJS h4C3VYO6/rLRyr4zsDh8O54q0RwX617QlnPAXLOUMgfEF7AQzsdw/PMiBiJbntBuYJhm cIQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775159799; x=1775764599; 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=4YoXNBPvdLN4cKz8AjAEwPTa6VEggaSGXs8hUMy+vRo=; b=G6NTOs8xoHOC8Pj4pMPLlMHeM2ywHrqrlMahkVSkgx2CRL/xDuhszoca/SZDRr0awT EZh4Tbwhh61OWbvfBjIm4Krwdc8kVvWBXXFC5skOE9ZiWutExSedoAIVU0yq9Kea38OS GrAr6Xwn6hIJrQ2en+lik6DlLYixN9htUrEn192YWhazmJILVZYHwerxQ+IO0qYsUJgS AGWgQoaDe7ptNGIf2U0WtYR8pTx9gKpemaVEb2HLC5A657UEP9puyVKsPoh/3XOfsx5S gDY83hihBARGQIJXG6mdVjYSth/S/aRp7eInTT6+g5SpHOdVe3GNyU+Rod+U2n+8z/od JUGQ== X-Gm-Message-State: AOJu0Yw6auBTRsl+FI6vmS/eNpuQcqywjitoIAd7KZZw96iw9Aw2bWx6 OHkYeGm1CrtaoKpXl0NeKWoqK77BVw2rN1v99/6zRTBSQLFbeQWDpzZjYI4rsXX2DABxrIhRf9t NSEeOzotdn5GA/hjiRpWGM4AluYZgbxzlaApK X-Gm-Gg: ATEYQzyiVyrw/OE9xKjePnPksE83hQ0hmMMGDYCMIZQhFet73R0f2JKscb9txdrt6iH 3gJ/O2zheKV+b8jdSmaOGO8fsDDRu6HPQrbz+adof3m3A8RSACfBOkIZfuaAUyOrQIzwOvyAwV6 jloAkyHse0UADe1Ej0L6lXGYBr63gh1RSKEh2V1RdL8lDA5mkfNrQ7KBkRKoaGeIwn5NlYRT9+a 5quES+S/19i6y0CX9+Z/H3KwCeemlxAL8fqZU97tSzpC64tMn++Y29oacRgTQ739oiIfrZX3+hb 9KplFFsCY+jJuZWuZbIVQFbAyd0SvV9nOEYAdQM= X-Received: by 2002:a17:907:c002:b0:b97:f22f:43c3 with SMTP id a640c23a62f3a-b9c67951924mr10403866b.31.1775159798877; Thu, 02 Apr 2026 12:56:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Haas Date: Thu, 2 Apr 2026 15:56:26 -0400 X-Gm-Features: AQROBzB17-VB6uMONLJdOhIrcgTW_bQ4NzU9Ry6Q-BLZmd5oexloJjRVcN9ZYL0 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 Wed, Apr 1, 2026 at 2:44=E2=80=AFAM Fujii Masao w= rote: > Reduce log level of some logical decoding messages from LOG to DEBUG1 Hi, Apologies for not having noticed this thread before the patch was committed, but I have some reservations about this change. I agree that if someone is calling pg_logical_slot_get_changes() regularly, it isn't good to write a LOG message every time. However, I am concerned that this may make problems with regular logical decoding much harder to debug. I see that there was some discussion of adding a GUC to raise the level back up to LOG, but I feel like that wouldn't help much. If something goes wrong, enabling the messages for the future won't tell you what went wrong in the past. I am wondering whether a better approach might be to set the LOG level based on context -- that is, if it's actually logical decoding, log this at LOG, but if it's just someone peeking at a slot or similar, reduce the log level to DEBUG1 or, really, probably more like DEBUG3. Thoughts? --=20 Robert Haas EDB: http://www.enterprisedb.com