-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db_postgres: automatic reconnect #9
Comments
Having a general purpose |
Also a simple thread-safe connection pool. |
How would you implement this? it works means: it reconnects correctly Something like this:
On the stlib something like this could be added:
Now, I don't know if something like this is acceptable, if you can create threads on the stdlib, if using channels to pass the db connection status is an option, etc |
db_postgres should detect connection error and reconnect automatically using pqreset()
Ideally with:
The text was updated successfully, but these errors were encountered: