Using the Driver in a Multithreaded or a Servlet Environment

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

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

PostgreSQL® Extensions to the JDBC API
Connection Pools and Data Sources