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 1wVVXm-0020mo-36 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 14:29:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVVXl-00CrAV-2W for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 14:29:05 +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 1wVVXl-00CrAN-1e for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 14:29:05 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVVXe-00000001Qsx-2k22 for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 14:29:00 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-7e6b5e09a96so1468814a34.3 for ; Fri, 05 Jun 2026 07:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780669737; cv=none; d=google.com; s=arc-20240605; b=I1H9soOrvWT3OThYv8lskn8h3VZFhzCvOMJjuMOXGDFxNussCiPyN/Pn+u5Ausm/qH ThdvLHz7Jq2IL9IlFL9OWsrAWRkSFjrBtDD33vB1h12r49r8FsOnVrzyPCZG4td25EKv z47CT1QF4giWPgXDtCQxg10cWEqRDE33kpQHuF4LMdLEUXofRAR6RINSHtrf15wtaHt+ BQJ90DjtZB+cqy8n81BtWV9RHM7+FBwurupwO1qoXemYMKLtPNqULu3mb+2b8q4nu8N3 MjRJ4rLRRlycFa95E/QcSCbM3hMIbM2XjHNHXu9ApuuD+WbKgJQSIBmBrt5n+y2tFUZp 5+qg== 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=w2SsAPxxCycy3lcdeRV0d8skI/NUGTzWvMB80Fr7ao0=; fh=KC1Nk4Zox0rvXkqhClhkhacvPEHm8d4//OMz+UNZGM8=; b=gmQ6TctCE58kcX7N5jWesCWiROyreeRGK+fUO5Bk509RShPB2+/FVKg38mt1GslZop l6KPwMfAzfVOkxvn79jcJRctYqfZsTGMZrZxpQTz9qPY0PrOB6X1vsrXA9C9wAuSh/GL 2VeT30sOg+egq3Xp7v8+axMxwozy1WXqAz2CDHGBFLEW64wMfk4nMOqtJDKJbRHEu6Hl sL+INlrSS6Xbk61AgJe0agfeHGmPx83IJ2nOkvUJ+vGF0CU6ZHlAhJXUP4PwIqqV7MeV gX1aBfoMlw0EBBsRO35qDoHJQkvtaL4fn60KnArnvBOj4YHm40KLAYaTMq8k+cUDJdz+ fxyA==; 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=1780669737; x=1781274537; 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=w2SsAPxxCycy3lcdeRV0d8skI/NUGTzWvMB80Fr7ao0=; b=C51mFxunLIFcVNJb43yhR1JnAHnAKx+BGwrkJLzKi/YctYyLFz69nwaS5ItNFkKPMV fUWG/GsUdg6F6vIrpIXHJMZJOMuRe4TeNASgM6I8PjdiToqN2iY1E9UNGuJy7VQeQa+1 IYOxWNNXnEQLJnUMc08QNtzVHUQtTEoY/a5bEO+CcGc//L5bSafulugpecqxbIdvVVnf i7+HjzEWQ+NVpk77EXbBJHlubJVW/4Ns+X3DLo0o6GE1XJ+oC2foRqeRzNV6dyKYV+pi T8iiCdmj4M0V+xg0pqb0JtLs4GG0ItPIGczOnKqd/ZEu7Qs11xuU8tTKHRljivrTdAek LX3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780669737; x=1781274537; 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=w2SsAPxxCycy3lcdeRV0d8skI/NUGTzWvMB80Fr7ao0=; b=MANgtpyMwXfTgM1IzadKNSBi6+h/xhK7DO+5UctLYbkBS5zzC+tCHZ7lKIZAL5v5ug /KmKldOXTkdLv+3L313bgyjeRlQVlcRFBVsfZQebS3kkfi6Y53Ko+6DApVkdNOHmSjqD L9hCpdMqoF3itvqNmrVQhPryNLKJ2BcggacBs1fskiPQ982A2wSRGLgJk6A2TkwM2MiO BXy/BDBu08fdPNR13CkNQmAH6ve9ZGaMiqOOsq+S8pX6iMzjznpydnd22LVZcOJCvhkG hllre4cHRkm5u1r1otn3CTgP0C6Uf6slrU2xPUxrtu61XdGlxRnyatqVg4qBL/GBkfi4 fCDQ== X-Gm-Message-State: AOJu0Yz+VmzUoHjNJhzdHi6Wqggvzz2kVg7DbdqZU+RdVtsVDtc/3kwU ULRIR+V7sj4FkyBgern5seUzPiyyUzJ27Bbj9901b5ootsjBURnKpV+9eXZwbXWnt1JhEUNQanm d8XSh2rshD/yYfLdI1oe9AyX/z1DAiGtzqrTP/5g= X-Gm-Gg: Acq92OERDUqzA6Nw4r8wzwmlxdCK3FnLvbUhLuQf8k0XLa9ZxjxlrWLt6lcfPWssmom j3ZRR5o/k+dz/XLdI6SRByPJ+k1vZIWp9LvDfg6c847JS32iFPIvKUtzHaKmg2f8rpAIGiKnIst Sc7PwfgcPmV0UzEc5ytiBjv/FXniRngwEmiJdGgmkRoN85a+Ae2kokCrS7ZifDH/Q0e+fV7dlem cSop2JSx7mh/RwGLw6DQtzbrcrxT30ggbNdwJf3aQh2+RrH9zEHagdNO2+pAjdutnHOLIgvAYuE CWCYgpJa5f4Ni3Sibf7tKfY/jhGcuagxIQQf65D2mK9b+2YKsr1U X-Received: by 2002:a05:6820:4d04:b0:68a:f494:e8fc with SMTP id 006d021491bc7-69e68c05d8cmr1998169eaf.33.1780669736730; Fri, 05 Jun 2026 07:28:56 -0700 (PDT) MIME-Version: 1.0 References: <396C3BEE-CD4D-450A-8D28-E708E9AA4075@gmail.com> In-Reply-To: <396C3BEE-CD4D-450A-8D28-E708E9AA4075@gmail.com> From: Fujii Masao Date: Fri, 5 Jun 2026 23:28:44 +0900 X-Gm-Features: AVVi8CdtZvRVtqo1Q4q3HZOdLthTP8YVaIHiBIH7TXMtEyOtDnxAtXb_-zYZJe0 Message-ID: Subject: Re: Prevent remote libpq notices from being sent to clients To: Chao Li Cc: Postgres hackers , vignesh C 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 Fri, Jun 5, 2026 at 6:32=E2=80=AFPM Chao Li wro= te: > So remote messages should only be output to the server log, but currently= they can leak to the client if client_min_messages is set to log. I'm not sure whether it's good idea to add this limitation. I just thought that some users might find it useful to send log messages containing remote messages to the client when needed. For example, in the following case, at least for me it seems helpful to see the LOG message including the remote message: =3D# SELECT * FROM dblink_exec(..., 'create table if not exists t(i int= )'); LOG: received message via remote connection: NOTICE: relation "t" already exists, skipping So I'd like to hear more opinions from others. If the consensus is that remote messages should never be sent to the client, I'm fine with adding the limitation. Regards, --=20 Fujii Masao