Re: Set notice receiver before libpq connection startup

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Rafia Sabih <rafia(dot)pghackers(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Set notice receiver before libpq connection startup
Date: 2026-05-28 00:39:48
Message-ID: 4FD8124D-6D42-4481-9C41-B658E5378364@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On May 28, 2026, at 01:56, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>
> On 23.05.26 01:56, Chao Li wrote:
>>> On May 22, 2026, at 23:28, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>>>
>>> On Fri, May 22, 2026 at 11:56 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>>>> PFA v4, just removed conn NULL check.
>>>
>>> Thanks for updating the patch! I've pushed it.
>>>
>>> Regards,
>>>
>>> --
>>> Fujii Masao
>> Thanks for pushing and still working hard during the PGConf.
>
> The committed patch violates the .gitattributes whitespace rules:
>
> git show --check 06a5c3cdef02
>
> contrib/postgres_fdw/connection.c:651: indent with spaces.
> + /* expand_dbname = */ false);
>
> 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.)
>
> Maybe we could reformat this slightly to avoid that? (unless someone wants to try to fix pgindent)
>
>

Ah, I was not aware of the whitespace rule. I think it was not pgindent; I made that change manually. I added “=” 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/

Attachment Content-Type Size
v1-0001-Fix-an-indentation-problem-in-postgres_fdw-connec.patch application/octet-stream 1.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Baji Shaik 2026-05-28 01:00:50 Re: uuidv7 improperly accepts dates before 1970-01-01
Previous Message Masahiko Sawada 2026-05-28 00:38:50 Re: POC: enable logical decoding when wal_level = 'replica' without a server restart