Message-ID: From: "strelec (@strelec)" To: "pgjdbc/pgjdbc" Date: Thu, 12 Feb 2026 11:37:53 +0000 Subject: [pgjdbc/pgjdbc] issue #3938: Documentation is conflicting if the drier is thread safe. List-Id: X-GitHub-Author-Id: 4661497 X-GitHub-Author-Login: strelec X-GitHub-Issue: 3938 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-State: open X-GitHub-Type: issue X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3938 Content-Type: text/plain; charset=utf-8 Here it says that it is okay to reuse the connection from multiple thread, as long as you create a new Statement in every thread: https://jdbc.postgresql.org/documentation/query/ This was my experience as well, I was using it in this manner and never got any data corruption or exceptions. > If you are using threads, and several are using the database, you must use a separate Statement for each thread. Refer to [Using the Driver in a Multithreaded or a Servlet Environment](https://jdbc.postgresql.org/documentation/thread/) if you are thinking of using threads, as it covers some important points. Then on the provided link it says the drier is not thread safe at all, and it does not cover any important points as it was promised: https://jdbc.postgresql.org/documentation/thread/ Which is it?