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 1wSOnW-0039kr-2g for pgsql-hackers@arkaria.postgresql.org; Thu, 28 May 2026 00:40:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wSOnU-00APat-2h for pgsql-hackers@arkaria.postgresql.org; Thu, 28 May 2026 00:40:29 +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 1wSOnU-00APal-1i for pgsql-hackers@lists.postgresql.org; Thu, 28 May 2026 00:40:29 +0000 Received: from mail-dl1-x1233.google.com ([2607:f8b0:4864:20::1233]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wSOnT-00000001mD9-10hq for pgsql-hackers@postgresql.org; Thu, 28 May 2026 00:40:29 +0000 Received: by mail-dl1-x1233.google.com with SMTP id a92af1059eb24-132d1b2519eso7307715c88.0 for ; Wed, 27 May 2026 17:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779928825; x=1780533625; darn=postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=cMqfhnysJG8ow/LiPdxE8bKGgprjuTsiTI3w2i2QW5k=; b=age/MXeJOpenKHJ5yWJwdVuzX1ok5RdvOVfpwle5WbIufB+RnQKCxXoEhvZkrPBuAz x8H9nfS0cn81vKMLVEmDueETTF6VRw16J15a4oaSTPstXTWbisSeEDA4d0SEohjtmFQZ hyaL1KVhvqq0gmpOjLVZP52ao4+QC3ATpn6eeLMYP1Vl/TO75Y3SE039JRCiRzJXuz+8 99Mv/cQe144HyAUfztCAlug/xxioruxKNNYJCeYxgE4uqt8Nuc7sCwmjmlHzGOqc0OTs zuq6jHF/KnI42qJbnXFMyU9p6vGKzHnrmXuDkBA/6qrm2nv9W4Z52z22jN44fNPxxrfX UC+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779928825; x=1780533625; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cMqfhnysJG8ow/LiPdxE8bKGgprjuTsiTI3w2i2QW5k=; b=qcGnhquQmefVS5r8szswgFKoaKOrl99XF0iEg5E42zurzbcQFQaPbjX/RpIgN1nhQr au8mSNKd2bcigiHjebsf4ImJ1ymF7NP6oJazoFAHdtbVV0OUR/6MNoi45rLIZSnqTDhE dVVbT7ImxCPwnyUfEeGDdtjkTWi6cKt+nSJot/OWJ/AIkaAY8Qvd42pe6FFVlr70Wd62 4N9QMCPndS7YUzseE3ynS4fXLAx6+Pp1/773xLG0YgbheD5vPlbALYYVH1P3jTVIPF5l NwdmPsYESmGxCS/+R8cFVac6IIERglUnXBC+vhRyESK3vusupZcWNWmBQ8he0oNTD3vr 9xQQ== X-Forwarded-Encrypted: i=1; AFNElJ+acULTPaMCp2C8yIjT0LKUJQD4DocRRcoR4Xa5XCqOrTHZ3mdzOIwjqYzjTSm3c/LJWR+/Y1nQ/PxufuQs@postgresql.org X-Gm-Message-State: AOJu0Yx+tFiAHs4aNO52W51k3COgqNrLGDalLlKCenuM2FUzFns+FyZ4 zOWinImkMWiioxRpDC4p+jsiUy63Yo+EJVgzKbN6FWgmsbxet5AaCt7Z X-Gm-Gg: Acq92OFqG1GSi6jWnZEtzpx5yAhNxyvIWcmyBfVLN2o/WBnabicEhg29RKwBCeL5U++ jBhVXEtUqjb3pxe/P1igUIxHK/F2XAk3P+0cB0LN47aLXKgAwmeshEHLXRhRm5AFXByqhZUC4JD HyjffiidN7OaoK70ZlZonWs9mQ5GMQH8ONnMgqcFnVuDHNNfIGhEqIhEDzdIGCvjxM2nzBSoCb4 ZRcrNeRpOrRBG1aptlmMttKEpIDTz/64kMz6gm1k0SFFw/98q97zAosbrKEhpQxQvlv9Y2uJwCe zUGQUhKrUXZgy4M+jn0j2FGaJ1v+b1EVMMIdk+I9//OP5brmyDD/P5UVk+jG0c2rgOhr/hVcYYW uTbJ23i/8HJ6g8TGb6GwJx8kBtNF6ahSSmJYaNWJ8VSkKD3C0HXALNOu7edov34iONCTaUQeDWA SXsVHWXBHwCDaLwzAyHdbaNOOMQAMjrTsXu+XCiIQ9 X-Received: by 2002:a05:7022:252a:b0:136:602b:80ac with SMTP id a92af1059eb24-136602b8140mr9622786c88.27.1779928824915; Wed, 27 May 2026 17:40:24 -0700 (PDT) Received: from smtpclient.apple ([64.32.14.230]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1366aa88cffsm10645938c88.11.2026.05.27.17.40.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 May 2026 17:40:23 -0700 (PDT) From: Chao Li Message-Id: <4FD8124D-6D42-4481-9C41-B658E5378364@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_CF927418-4819-48BF-BF12-A1CBE8B7E881" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: Set notice receiver before libpq connection startup Date: Thu, 28 May 2026 08:39:48 +0800 In-Reply-To: <2620a664-7b44-48b2-9aa8-5f0131702d9c@eisentraut.org> Cc: Fujii Masao , Rafia Sabih , vignesh C , PostgreSQL-development To: Peter Eisentraut References: <978D8971-08C3-4AAD-AE8B-976D753C882A@gmail.com> <6B9A85F9-B632-4286-98AF-9EC435019055@gmail.com> <0DCA82A4-7C10-40A7-AEF5-827171160FE8@gmail.com> <0C00CA35-D0C5-40EB-9C23-9F871DCE74E9@gmail.com> <2620a664-7b44-48b2-9aa8-5f0131702d9c@eisentraut.org> 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 --Apple-Mail=_CF927418-4819-48BF-BF12-A1CBE8B7E881 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 28, 2026, at 01:56, Peter Eisentraut = wrote: >=20 > On 23.05.26 01:56, Chao Li wrote: >>> On May 22, 2026, at 23:28, Fujii Masao = wrote: >>>=20 >>> On Fri, May 22, 2026 at 11:56=E2=80=AFPM Chao Li = wrote: >>>> PFA v4, just removed conn NULL check. >>>=20 >>> Thanks for updating the patch! I've pushed it. >>>=20 >>> Regards, >>>=20 >>> --=20 >>> Fujii Masao >> Thanks for pushing and still working hard during the PGConf. >=20 > The committed patch violates the .gitattributes whitespace rules: >=20 > git show --check 06a5c3cdef02 >=20 > contrib/postgres_fdw/connection.c:651: indent with spaces. > + /* expand_dbname =3D= */ false); >=20 > It is unfortunate that pgindent produces this layout that contradicts = the git configuration. (The current formatting also doesn't look like = what I would produce in an editor, so I think git is right here.) >=20 > Maybe we could reformat this slightly to avoid that? (unless someone = wants to try to fix pgindent) >=20 >=20 Ah, I was not aware of the whitespace rule. I think it was not pgindent; = I made that change manually. I added =E2=80=9C=3D=E2=80=9D because I = thought it might read more fluently. Attached is a fix for that. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/ --Apple-Mail=_CF927418-4819-48BF-BF12-A1CBE8B7E881 Content-Disposition: attachment; filename=v1-0001-Fix-an-indentation-problem-in-postgres_fdw-connec.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="v1-0001-Fix-an-indentation-problem-in-postgres_fdw-connec.patch" Content-Transfer-Encoding: quoted-printable =46rom=201fcadb474e54fe82eb0aa5f8d62ecd2dafede1dc=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20"Chao=20Li=20(Evan)"=20=0A= Date:=20Thu,=2028=20May=202026=2008:30:22=20+0800=0ASubject:=20[PATCH=20= v1]=20Fix=20an=20indentation=20problem=20in=20postgres_fdw/connection.c=0A= =0AReported-by:=20Peter=20Eisentraut=20=0AAuthor:=20= Chao=20Li=20=0AReviewed-by:=0ADiscussion:=20= https://postgr.es/m/2620a664-7b44-48b2-9aa8-5f0131702d9c@eisentraut.org=0A= ---=0A=20contrib/postgres_fdw/connection.c=20|=202=20+-=0A=201=20file=20= changed,=201=20insertion(+),=201=20deletion(-)=0A=0Adiff=20--git=20= a/contrib/postgres_fdw/connection.c=20= b/contrib/postgres_fdw/connection.c=0Aindex=20346f6f1fbfe..0810b756d38=20= 100644=0A---=20a/contrib/postgres_fdw/connection.c=0A+++=20= b/contrib/postgres_fdw/connection.c=0A@@=20-648,7=20+648,7=20@@=20= connect_pg_server(ForeignServer=20*server,=20UserMapping=20*user)=0A=20=0A= =20=09=09/*=20OK=20to=20make=20connection=20*/=0A=20=09=09start_conn=20=3D= =20libpqsrv_connect_params_start(keywords,=20values,=0A-=09=09=09=09=09=09= =09=09=09=09=09=09=20=20=20=20/*=20expand_dbname=20=3D=20*/=20false);=0A= +=09=09=09=09=09=09=09=09=09=09=09=09=20=20=20false=20/*=20expand_dbname=20= */=20);=0A=20=09=09PQsetNoticeReceiver(start_conn,=20= libpqsrv_notice_receiver,=0A=20=09=09=09=09=09=09=09"received=20message=20= via=20remote=20connection");=0A=20=09=09= libpqsrv_connect_complete(start_conn,=20pgfdw_we_connect);=0A--=20=0A= 2.50.1=20(Apple=20Git-155)=0A=0A= --Apple-Mail=_CF927418-4819-48BF-BF12-A1CBE8B7E881--