Repository navigation
thread safety question #1240
Unanswered
tsr-boxbot
asked this question in
Q&A
Replies: 1 comment 6 replies
|
It is safe to use the same connection string in multiple threads. |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello! I have a question about thread safety,
According to: https://libpqxx.readthedocs.io/stable/thread-safety.html we have:
Does
connectionhere refer to apqxx::connectionobject ? Or does it refer to the connection string passed topqxx::connection's constructor?Meaning if I have many threads and some of them possibly use the same string to construct different
pqxx::connectionobjects do I need to worry about thread safety?All reactions