Re: Serverside SNI support in libpq - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Serverside SNI support in libpq
Date
Msg-id 0217DEFA-9684-4A77-A005-D30EBEF155C4@yesql.se
Whole thread Raw
In response to Re: Re: Serverside SNI support in libpq  ("Dewei Dai" <daidewei1970@163.com>)
List pgsql-hackers
> On 26 Nov 2025, at 10:14, Dewei Dai <daidewei1970@163.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

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: macOS - Sequoia CI task is stuck on the Postgres Github CI
Next
From: Álvaro Herrera
Date:
Subject: Re: macOS - Sequoia CI task is stuck on the Postgres Github CI