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 1wVfZV-0027TF-1U for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Jun 2026 01:11:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVfZU-00FPDc-0j for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Jun 2026 01:11:32 +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 1wVfZT-00FPDT-31 for pgsql-hackers@lists.postgresql.org; Sat, 06 Jun 2026 01:11:31 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVfZR-00000001KCk-0TPd for pgsql-hackers@lists.postgresql.org; Sat, 06 Jun 2026 01:11:30 +0000 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-c858b392697so1257700a12.3 for ; Fri, 05 Jun 2026 18:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780708287; x=1781313087; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7OkBrmLg7Mv3iPVw4dv70PQERCcCh9xpBXqAOxfxzwk=; b=FhdLpzGnyKZO91sD/1ryghNpRPFAuqfULM0cImXD0NSGuvXSVe803tMedqVVMw4PVk Y3CnjXnsaAv/71aRti3bA/7PG8fZQdX+mT6Pj+2l+xXzl4XjBOr/Fa8vkvUJG9fDhYZf mHcoHRYdpvH5u3AuePegoHD2G7sEtc7jPvbBd8BpLbd6Ps2p3Y4XL988gilo/0ORxA0n ulNc9g6DhS1TsyxIlb50x9wU7QcqkqmNB4zUJUDI8Bwloz1Hg4lrC76pAPgaXekWeLML t/TBfoID37ON7IBDEsYpUXiXm0ZUGpZca6e5c6lzyaSKLEm/JKyUbF+lEZQ73it8tYnT ameQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780708287; x=1781313087; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7OkBrmLg7Mv3iPVw4dv70PQERCcCh9xpBXqAOxfxzwk=; b=C8YmrK+4Wl4kuOXfF2ABwdDmo6DFgVAQCZhCF8LJBKVzS2d0DKP4eN5oTQUhdb6fQo 7G9t1j9AlAub9u3DlCFYn1CkxyFw/o5xwN/vLVRYKeZZiPOHOfjqlIw1uGLDA3HO6qM4 ZOE2hk8ZHIIZ/9hxFaXnAhC6Xjh42F34cRxdl8kD3c2qnkn5uOyOTJlPC8b3nvh7YQwX 3INkYiAQECqtzbHN7VMS/ZshcEAF/ptsqedPXRYqf+LbypD/76bp2GXgiv87BGoEUaf8 IOGRA1pan6uTGZPJaMPaIFlZNL0VK/bYhI8Bx+R7HXAegQqEVw/yGyVT31eT0/FkDXiI DFEA== X-Forwarded-Encrypted: i=1; AFNElJ95C3RMbnQPFjo5X3brcHJ3OvJ8R/Nq9A+ezpLhj4RXxwwc6BUgywAxDDb7dBI27fqNc0+OScsP17W3jF4c@lists.postgresql.org X-Gm-Message-State: AOJu0Yz/wLBpwv1sd7ehmXpEiWFDc0RtT8kyG3ESBjuyWy/4hlS9lShO QH5IrOc/F4awBMKDxHIJ4oXEWGXuZbPFQyLOKs3gGLcflLWxh1HzLdNG X-Gm-Gg: Acq92OEa9SL7roM/BOJ3y0JgVYEyqMYoY2t0M/Q+cMY3whpTG6NLsXE1zkONJ8HvY9l h/d8gChddpbJ/ZDlF/8OeY0QqN6gUGQad4Q4To5QlfU0YLv8s0LcpXJ+sQNjaoAnQddV/a6/4jV LspIaUfKsUAaxuQhVdsyq5vAwBi3ONdOYEnfEMLjpL/z/2rvQ7a5sQaAuV0wpTg0cHnrptz097g wYdr9Ul5UEtdGaBZ1UXlXMW4MxhfY3K7xvuTELiyrZi5LEzQ62plkTSBD8R23M1iTEPhLR+LMBi RCoJNUhhSUrzoMV7Q5VymB0AubkFTGUMFVq7zsuYBi1Xbkx95gHJUMlD93oMFO1UBFcp8dB9FGI DL/co58ZF9EZhADHOcw9fSy8Ad1MD3aug3ia97T9r69EebK4nuj4aqzXZDh1EgwRn9L/QMjNvXf J0WuwN3pWXM8T7kFDBGhTMJONFYjKPwCHuXS/+Bx9fPA== X-Received: by 2002:a05:6a21:6113:b0:3a2:d838:bfc6 with SMTP id adf61e73a8af0-3b4cd007d6dmr7919816637.29.1780708287121; Fri, 05 Jun 2026 18:11:27 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c85df043ce0sm9050076a12.11.2026.06.05.18.11.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jun 2026 18:11:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: Prevent remote libpq notices from being sent to clients From: Chao Li In-Reply-To: Date: Sat, 6 Jun 2026 09:10:46 +0800 Cc: Tom Lane , Fujii Masao , Postgres hackers , vignesh C Content-Transfer-Encoding: quoted-printable Message-Id: <0F777DB5-9AC8-4414-A0DF-53F641B3E97E@gmail.com> References: <396C3BEE-CD4D-450A-8D28-E708E9AA4075@gmail.com> <3592596.1780670596@sss.pgh.pa.us> To: Jacob Champion X-Mailer: Apple Mail (2.3864.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jun 5, 2026, at 23:20, Jacob Champion = wrote: >=20 > On Fri, Jun 5, 2026 at 7:43=E2=80=AFAM Tom Lane = wrote: >> Also, I don't buy the argument that this is a "leak": if the remote >> server was willing to send the message to its client, it doesn't = think >> that the message is security-critical. >=20 > I don't think the remote gets to decide that, in general. It's up to > the middle layer to know whether it's operating at the same level of > trust as the end client. >=20 > --Jacob Thanks to all for the input. It looks like people have different = opinions on this topic. BTW, I realized that my previous wording of = "leak" was too strong, sorry about that. Here, I think the main concern is that this is an =E2=80=9Cunintentional" = user-visible behavior change. I went through the original discussion = thread [1], and I don't see this behavior change being explicitly = discussed. I am not against Fujii's idea that emitting a remote WARNING = to the client could be helpful, and I also like Tom's idea of mapping = the remote severity to the local log level. But if we really want to do = that, I think we need a dedicated discussion, and that seems too late = for v19. Also, if we eventually decide to change the client-visible = behavior, I think we should document it explicitly. How about preserving the old client-visible behavior for v19? I can add = this topic to my TODO list and follow up with this work for v20. [1] = https://postgr.es/m/CALDaNm2xsHpWRtLm-VL_HJCsaE3+1Y_n-jDEAr3-suxVqc3xoQ@ma= il.gmail.com Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/