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 1w9xTi-001vRj-2r for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 03:51:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9xTh-00E5Q0-0x for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 03:51:49 +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 1w9xTh-00E5Ps-04 for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 03:51:49 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9xTf-000000011WQ-0pGH for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 03:51:49 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-7d556c1a79eso5912936a34.3 for ; Mon, 06 Apr 2026 20:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775533906; cv=none; d=google.com; s=arc-20240605; b=EcZBGpsE2arex6kO9A0kX8aUkBVC5pQFm7FbWmXLoXE1BoDH2oywQgms/B3Gg7FMGb 6NcUOMIvMDub8htlApRcIAnfrCoJ5LlmWtB/nmp5ZvfLZMnEqBsefeR1s9fClZUy32QT uL5fyP6EdmTjvdDvHqjrs5aTuwP07WDzHK7ts7FYVwQqaCM5T0HRHnsdYmglR4A7t6BE pxALcJu6bwYfADRCVLU6zRX7WWeMWVOC7NiM+sLJe3RgIMScWzdoJQH+XVgVpKOf/qzb NNW1Tm+Vf5EOsLdD8yvAMDfmrzA/t9jJ0Mp5aDucpLVIBrPr+O7HrZgz6DeCJt9nGyxi BcAA== 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=FO7LN9rX2R1c8FUD9KADtKRIkhPZrauGvjTKxR7Ts7U=; fh=cyhXxir0o685lbr/HJ+hSmuFUL3SMN4kuXMenXIxpFc=; b=lzeAiW1ctFJj6NnGNzCFjfMxoUHAMkqSAWouENBK+5FyvBRJeNZmh/RcDvL+Hgay7Z hKz6jg92XstxXG/qQ/p091ngm/HtWrRC4L6Dr6lWILK7BEj30oOzxBQqcoBwlRDkro9L CpAt3n9zvcn/OAX2z2tY1ljBksiKkvFWsesqmBay3bZJ97n8y0nSXwUK3pziEZ6rVEw5 Dwv5jLiQNL8DLFQun/KF56rwNbssqyBmHT3i1FQZjMaVgsi5ifmJXyevyYx57DFJMzmz 3/rsI7Rjo7fdusx5kEpG4rCxV2uJvPhuOaENaDydzwJbXEY6jjZHCXY/pFGG/aYrdkgp pLOA==; 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=1775533906; x=1776138706; 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=FO7LN9rX2R1c8FUD9KADtKRIkhPZrauGvjTKxR7Ts7U=; b=TzeMusmUR3ZsFzcWsHnv7GiiaH2Bgc5WS2N81RRui82cJs2yNoLFIBMLT0VvsmDQ+D j9TdIdqR4Ga6g2ZYDtGsYrRcX2l+Fhgg6zhZyCe4PrrKjCN+lbghZcUCUNi5h9ESQBu2 +oZ6UKbMRSliLOTbGsfF/giN9UuEvAze/Y64kUEmTfHJFZLoZLkXb31DDtI3KFEaaMzM NinV9ilbYzV4EfaEDFpMImtt2OezfzPLLcLKyGtLednuOdDpg3CgLduKgWNjbP/hJj0H 7ej3PFrW3WWvuHwrFvRdc7IsG/bhs5JSG0mak3Sy1uGXQxr/Z0t+PKOIY/BNnioeZmMu ADEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775533906; x=1776138706; 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=FO7LN9rX2R1c8FUD9KADtKRIkhPZrauGvjTKxR7Ts7U=; b=kWZsuZK8khf1droukn6SpgYB9utcR2sNuAoPiNyK3/A98TYrcuFaqt6feJQwLqvCV0 dF87GpHUdHGMk6Rq/IaKDpvWbmGBieAt4z5xqT/2EC1NeXx+keNxM/W19HetOsas0dhG ImE7+60yt+U3JVIU0pgnfgNgYlKLGAlmeEi/5fTt+Eu/XE1z1G9smRFRyhCLBX3s4mTF lPD2YmNsjcxP2GIj1F21ZiTv4h8OD2cGn8iTBF/PwTzZbMDXB8brNNn3RRpkyQRbgGS/ HiPlwZsEM4vm7RyT08Pr4sg2x/2DrY1ffbsGmReTg4XTqIUn+qSJtmIb8LIgH7/z0ZUM LiDQ== X-Forwarded-Encrypted: i=1; AJvYcCXHihO1M2mK0z7cLL29p2D+NBf1tBvVBLHuWamnqX9sCBAC3SVL1mfYb613RGKD/seAVH05VE/yVw8bPzDa@lists.postgresql.org X-Gm-Message-State: AOJu0YxQ0x2aTl5ve2c6TaBbguUsUKEDC1whXR6DB4k9L4aQRMVKR3yR +1N1lS5rEEq4SZ8Y8fkwIRwm4SL7/ZzpFhcRqJgGOoSKjyrsk1k4Bbp6/H+46hCVCEMX/QeDavB waa3oJY6Ndp2mCZhn+dEVtpwsJJQsu4w= X-Gm-Gg: AeBDies5xoPqwg6+tNHGiK0BKh5dnBNjmKP3IKzRJN1Rgqdt/+xWpYnjv3PJez49par tCuHfDagui2Wi1p4ZXcESlkPajboudYHZRph8wGmhkkEAC2lt3gtWEb0aarlFbCNJfzxwQ9XqHJ 4qKDlAg40JTZ7BGt0YMQEPlPAAG8B+2SVuAUZu9bRGMtKwpT4+7hkU4pjM1CoSIaNnrJkpAoeO8 5n54yBWGUqp5u7m6UJST49U8PNBROJaMLlzanSytadEIrf79mCa0Z/HRqXr7zln81wbcAgLp9E0 brKkYjrve+CZYpREBDyMjN443LwCk2rm+Qwhvw4= X-Received: by 2002:a05:6820:2d08:b0:67e:3e13:3301 with SMTP id 006d021491bc7-6822094b477mr8136352eaf.47.1775533905837; Mon, 06 Apr 2026 20:51:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Tue, 7 Apr 2026 12:51:32 +0900 X-Gm-Features: AQROBzCTiJ6rvIXXPhSqHDMDMgQOAny7P0aCIx3KwuJ7qIZ3eOpGKK4wFwVmARo Message-ID: Subject: Re: pgsql: Reduce log level of some logical decoding messages from LOG to D To: Amit Kapila 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 12:18=E2=80=AFPM Amit Kapila wrote: > > 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? I= f yes, > > > > one straightforward approach to implement that would be to log thes= e 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 wel= come. > > > > How about adding repack_worker to that check as well? See 28d534e2ae. Thanks for the info! It may be better to use DEBUG1 when AmRegularBackendProcess() is true and LOG otherwise, rather than checking AmWalSenderProcess() or AmLogicalSlotSyncWorkerProcess(). This would also cover any future background processes that use logical decoding. Regards, --=20 Fujii Masao