Clarification on thread-safety - Mailing list pgsql-jdbc

From Martin Pärtel
Subject Clarification on thread-safety
Date
Msg-id CAMD8JhzvPVsidUyhe3+gBkkiO1QU4VQjeq4g3pMxQe4FVmOa1A@mail.gmail.com
Whole thread Raw
Responses Re: Clarification on thread-safety  (Lachezar Dobrev <l.dobrev@gmail.com>)
List pgsql-jdbc
The docs have a very brief page on thread-safety: https://jdbc.postgresql.org/documentation/head/thread.html
It states, pretty categorically: "The PostgreSQL™ JDBC driver is not thread safe".
However, it's common to want to open new connections from multiple threads.

A cursory look at `PGSimpleDataSource` and `org.postgresql.Driver.connect` suggests both of these methods are thread safe.
Perhaps this is an "obvious" level of thread-safety, but I think the doc page spelling it out would save other paranoid folks like me some time.

pgsql-jdbc by date:

Previous
From: Andrei Lurie
Date:
Subject: issue #2520 (incorrect base type from getUDTs)
Next
From: Lachezar Dobrev
Date:
Subject: Re: issue #2520 (incorrect base type from getUDTs)