-
When trying to create a pqxx::connection object, the app crashes with an error message like this,
This error solves after starting locally a PostgreSQL server process/service... but the goal is to run both processes (client & server) in different machines... Notice that the official client psql works fine in this distributed scenario. I'm working with libpq (17.0) & libpqxx (7.9.2) |
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Oct 16, 2024
Replies: 1 comment 6 replies
-
Should you pass Connection URI string to |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In C++, all member variables are initialized before the constructor body is evaluated.
If not explicitly initialized, the compiler calls the default constructor.
Example (run online):
To avoid this, initialize member variables before the constructor body: https://en.cppreference.com/…