Files
2020-06-30 14:58:21 +08:00

811 B

layout, title, header, resource, previoustitle, previous, nexttitle, next
layout title header resource previoustitle previous nexttitle next
default_docs Chapter 10. Using the Driver in a Multithreaded or a Servlet Environment Chapter 10. Using the Driver in a Multithreaded or a Servlet Environment media Server Prepared Statements server-prepare.html Chapter 11. Connection Pools and Data Sources datasource.html

The PostgreSQL™ JDBC driver is not thread safe. The PostgreSQL server is not threaded. Each connection creates a new process on the server; as such any concurrent requests to the process would have to be serialized. The driver makes no guarantees that methods on connections are synchronized. It will be up to the caller to synchronize calls to the driver.

A notable exception is org/postgresql/jdbc/TimestampUtils.java which is threadsafe.