Re: BUG #18312: libpq: PQsetdbLogin() not thread-safe

Christian Maurer <c.maurer@gmx.at>

From: Christian Maurer <c.maurer@gmx.at>
To: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs@lists.postgresql.org
Date: 2024-02-02T16:27:24Z
Lists: pgsql-bugs
> I wondered whether we needed to introduce a critical section
> to prevent multiple threads from calling that concurrently,
> even though its docs allege you shouldn't have to. Perhaps
> it's thread-safe except on Windows?
This would explain, why I could not reproduce the error on Red Hat Enterprise Linux.
 
Regards,
Christian Maurer



Commits

  1. Avoid concurrent calls to bindtextdomain().