Re: libpq OpenSSL and multithreading

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Daniel Gustafsson <daniel(at)yesql(dot)se>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: libpq OpenSSL and multithreading
Date: 2025-07-02 22:57:42
Message-ID: aGW5Zus5B1OKSx3C@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 02, 2025 at 01:44:55PM +0200, Peter Eisentraut wrote:
> Couldn't this also be done by making that global variable thread-local? But
> getting rid of it is even nicer.

Getting rid of it like Daniel is proposing is by putting this
information in the backend Port is much more elegant IMO.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2025-07-02 23:12:40 Re: libpq: Process buffered SSL read bytes to support records >8kB on async API
Previous Message Michael Paquier 2025-07-02 22:31:57 Re: Inconsistent LSN format in pg_waldump output