Re: libpq OpenSSL and multithreading - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: libpq OpenSSL and multithreading
Date
Msg-id 1151F1C3-28CA-4E5E-A82B-37C55530E5C4@yesql.se
Whole thread Raw
In response to Re: libpq OpenSSL and multithreading  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
> On 29 Oct 2025, at 10:41, Peter Eisentraut <peter@eisentraut.org> wrote:
> On 22.10.25 10:59, Daniel Gustafsson wrote:

>>> On 1 Sep 2025, at 07:27, Peter Eisentraut <peter@eisentraut.org> wrote:
>>> I suggest that instead of adding the context to the Port structure, make a separate context struct for this
purpose,for example: 
>> Fair enough, done in the attached.
>
> This looks good to me.  (I would not have the CallbackErr typedef, since that additional abstraction doesn't buy
anything. But it's a small difference.) 

Thanks, I removed the typedef and went ahead with this patch.

>> (sidenote; if our thread
>> local store code will use TLS then be-secure-openssl.c will be challenging to
>> read =)).
>
> Yes, let's rename it to SSL to avoid this. ;-)

Touché! =)

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: KAZAR Ayoub
Date:
Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD
Next
From: Peter Eisentraut
Date:
Subject: Re: alignas (C11)