Clarification on thread-safety

Поиск
Список
Период
Сортировка
От Martin Pärtel
Тема Clarification on thread-safety
Дата
Msg-id CAMD8JhzvPVsidUyhe3+gBkkiO1QU4VQjeq4g3pMxQe4FVmOa1A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Clarification on thread-safety  (Lachezar Dobrev <l.dobrev@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrei Lurie
Дата:
Сообщение: issue #2520 (incorrect base type from getUDTs)
Следующее
От: Lachezar Dobrev
Дата:
Сообщение: Re: issue #2520 (incorrect base type from getUDTs)