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 1w9wxL-001uzj-2Q for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 03:18:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9wxK-00Do2s-0T for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 03:18:22 +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 1w9wxJ-00Do2j-2m for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 03:18:22 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9wxE-000000011Eg-3mWb for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 03:18:21 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-38e12c67a6fso3585471fa.1 for ; Mon, 06 Apr 2026 20:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775531894; cv=none; d=google.com; s=arc-20240605; b=Z1Y1baM0Pqv2Uqk4WgGJnNTU5yDtYcmknotwE2gTHaXp8SnbuWluNAbAAN70FhtfLD oAF08Qp/2Ppf/+bfMGgZEp6bigVSDGCoDIi5Tlw157DAU7DL/2XlASKf9QAWqfnfbNPY 6qWnw8qV+llvbnQQ+18TgS64im2jDRynGLfPZTewjCShUnCvWMnfK4zJd7tqWdWL0nKN iLcSkTYnxO0dayd11+5zjOXPy5AuFpsikg7HkE/HvnK1gJ9GZxXM/AuzQqtqBzMvjJyt DSWL+bqXCo4fhcwmNcdZ6/oNdA1Kdp6BzV3v1RutfFYNb4LXNRYJY78ZKL0gQDwGIXUP EenA== 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=gtKYEHVR/T0DrxpKjLR3w74Ncchow2yXZcsJ7ZIEp6E=; fh=9nxIinulweookiztwqlxeSx/yoJ31Rv+11E0jzvh5ZQ=; b=NZZluW4QBPAKwACdhdGtfdU27KbqP0IhUm6riYEcLlmiFTEdC85C1FRXGEH1YcQ/eY UqDacBYCKgB1VuQr37qj+WUD12G70gMkolMz0qBY1eWKmH6PRitiBft47/fUHoNmR7QR vNBTTRH4A25AL3sCkfn2VcIeWsTajYEe+t6P5gJU+PX5Oj1hwJUTBs5gu6qwiUjsgN5v jGcst17ChZKfu1c9QIuuEj9bhdT9UHKR2YWrjSQ08jDraRWoG5DRH0zTpJrgboZn4pUi A1bEa66BSpDg7MPf/nhQyw/+BnRoSf6LLdv81NNbvM9waCzPNgIxyEykBw5qYkYjI5JE 7ZCQ==; 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=1775531894; x=1776136694; 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=gtKYEHVR/T0DrxpKjLR3w74Ncchow2yXZcsJ7ZIEp6E=; b=UQHDKa+q9pS5MlVlHs5lVUHIrVSG1Ai7k75TS07198P+O1ug6ZgVrXx0f6SKp46ZT9 2JN1lTOCIse4cNQsxbIjVg/3R/YssAiaOPOFpNYYC8ZgrYSMInfNMpd6o5N/sssYMsGl jTNJP5hmZ2BCmBfBnG62yP/3qGnxSMI+I9Gg7R3xZ4POIDEOPRR72l6jyf+PfdfthHIr WS0apMRX9d5a2I0UZYh6mwddTL/ra1UnibFQcxAm8iFchn/4M7FJiN7X5Wzp4IVWlm7W GhKDzFaZhqVnDadnSx6HR0lijy5TrRl2u0jSYf8ecI0SUlzxYRXYDEkYPnTTfJ6BqweP E0Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775531894; x=1776136694; 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=gtKYEHVR/T0DrxpKjLR3w74Ncchow2yXZcsJ7ZIEp6E=; b=Gz6qNnzhucz082WcykOL5nePGM8/ktWmI2LjtAUw0ieLthyVf74GTI+8UmOErd5FhX hREedq2So/IONyjX2lwgtYOzb9h06UmRm5rNWTQNrUUHfcMBPGZiiZGutOw9tHunExsu zIJncWLnnPuxGY5+j29BQHDZSzdyP+DDapH3Tz23/yJdBxftL7cUteKAAK9Puscm/EVq Sjo9l9MCs+Hnbc6EkIggx+GEQfu6A3CGxG9MRGmakbl/MnXUqpcZ4wyl0A0/uMsO90Hg ihBE7UPXL3zADTSgFSDa9GXRe64X9yvLN5V1EsR6xh9QGXKX+t7LhyQ0LSDx4QQ7ZIDD 9MbQ== X-Forwarded-Encrypted: i=1; AJvYcCWT0Zne52z0G29euWhS7BamKyTDbyDr3uZ/S2AqSsKjCgCzJUWWsFbs+KRPEC5yRi3pVOQXxH2DlNCST7pw@lists.postgresql.org X-Gm-Message-State: AOJu0YwnZia29/SSPi8go6Nxpog9uvgpBjB9QjT0ZBA6aUJgeodz74sS Y/NEU6SpvEXsOTO0M8IW26KiqXdhMEa/l3FQ93C9l/eQOILqjQ7oeeH8TmmegUWK5HKzaSPSjuo PImxDgPUFK5gSDZaNHSXpR8kHqXk/vFA= X-Gm-Gg: AeBDietRFwddKv81CnJPRvL9KUOSXaLJ7P7/fyUwp6r1igOp13BDDTkkTc2KFCUtao+ Ca67Weev5lAT3Qggu7uzWHY6F7HPm4bMdH63jmG64IPD0JfuFQTEaLPBE5cuG6bp9q7uaOvpDEc +XeTNFti4yp5z123D9MkX2Sy/1TfBa6etVxAVYQid6BPPRP6WL1lfgJeGt2nGmE6za+v8BQZBss G036K2B8IImejFuawdcGqzxHucsseConW6PMTbW0YwmL+IVBg4vgCI2e8rTnCUrvGGv03yzMCm+ AdyaKheYlnczdAFwlZU2wU1oGH6gKGYm51NAc6M= X-Received: by 2002:a2e:8704:0:b0:38a:38cc:c03e with SMTP id 38308e7fff4ca-38d91d80f17mr30052581fa.31.1775531893921; Mon, 06 Apr 2026 20:18:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Tue, 7 Apr 2026 08:48:02 +0530 X-Gm-Features: AQROBzCei-mF_Om0NSw26ecq857RH2xrCcVonDHV1h0MpfezxLfIzSEucgjef_8 Message-ID: Subject: Re: pgsql: Reduce log level of some logical decoding messages from LOG to D To: Fujii Masao Cc: Robert Haas , 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 Tue, Apr 7, 2026 at 8:34=E2=80=AFAM Fujii Masao = wrote: > > On Tue, Apr 7, 2026 at 1:16=E2=80=AFAM Robert Haas wrote: > > > But probably are you suggesting making this behavior the default? If = yes, > > > one straightforward approach to implement that would be to log these = messages > > > at LOG when AmWalSenderProcess() or AmLogicalSlotSyncWorkerProcess() = is true, > > > and at DEBUG1 otherwise. > > > > Yeah. > > OK, I've prepared a patch to implement this. Patch attached. > It introduces a LogicalDecodingLogLevel() macro to choose the log level > based on context, but the name may not be ideal, so suggestions are welco= me. > How about adding repack_worker to that check as well? See 28d534e2ae. > > > > The downside of this approach is that it becomes harder to suppress t= hese > > > messages for walsender or slotsync worker if some users want to do th= at. > > > For example, raising log_min_messages to FATAL or PANIC would suppres= s them, > > > but would also hide ERROR messages, which isn't desirable in producti= on. > > > > 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. > > Maybe. One such case is that, due to the issue discussed in [1], the slot= sync > worker can generate those messages as frequently as every 200 ms. But onc= e > that is fixed, it emits them only once per sync cycle, with intervals ran= ging > from MIN_SLOTSYNC_WORKER_NAPTIME_MS (200 ms) to > MAX_SLOTSYNC_WORKER_NAPTIME_MS (30 s), which might not generate > excessive log volume. At that point, it might be OK if messages from > background activity are not easily suppressible. > Yeah, we need to fix that issue. With Regards, Amit Kapila.