Re: Serverside SNI support in libpq

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Dewei Dai <daidewei1970(at)163(dot)com>
Cc: "li(dot)evan(dot)chao" <li(dot)evan(dot)chao(at)gmail(dot)com>, Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Andres Freund <andres(at)anarazel(dot)de>, Pgsql Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Serverside SNI support in libpq
Date: 2025-11-26 14:33:07
Message-ID: 0217DEFA-9684-4A77-A005-D30EBEF155C4@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 26 Nov 2025, at 10:14, Dewei Dai <daidewei1970(at)163(dot)com> wrote:
>
> Hi Daniel,
> I just reviewed the v11 patch and got a few comments:

Thanks!

> Typo: certficate -> certificate

Fixed.

> Typo: hand- shake ->handshake

Fixed.

> Typo: There need to be -> there needs to be

AFAIK "need to be" is the correct spelling for referring to a singular thing,
and "needs to be" is correct for plural. I've been thinking about this in a
singular context but maybe "needs to be" is the right wording since the hint is
"at least one". Changed to "needs to be" just in case.

> It is recommended to delete pg_hosts.conf.sample during the `make uninstall` command

Nice catch, fixed.

> In the `be_tls_destroy` function, the context is released, but it is not set to null.
> This is similar to the `free_context` function, and it seems that it can be called directly.

That's a good point, be_tls_destroy can just call free_contexts directly and
save some code while making sure it's consistent. Fixed.

--
Daniel Gustafsson

Attachment Content-Type Size
v12-0001-Serverside-SNI-support-for-libpq.patch application/octet-stream 62.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2025-11-26 14:38:37 Re: macOS - Sequoia CI task is stuck on the Postgres Github CI
Previous Message Andres Freund 2025-11-26 14:24:52 Re: macOS - Sequoia CI task is stuck on the Postgres Github CI