Skip to content
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

Automatically syncing after database error #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kevsmith
Copy link

@kevsmith kevsmith commented Feb 3, 2012

We've been happy with epgsql but the need to manually sync after an error has caused us a few problems. These two commits enable pgsql_connection to automatically initiate a database sync in the event of a database error.

Kevin Smith added 2 commits February 2, 2012 15:07
pgsql_connection processes will automatically initiate a Postgres
sync exchange with the database when a database error occurs. This
insures the connection is always in a sane state and relieves external
callers from having to care about syncing the connection after an error.
@wg
Copy link
Owner

wg commented Mar 8, 2012

Hi Kevin, thanks for the pull request!

I'm curious about what sort of errors you've encountered that could benefit from this, is it during binding parameters to a prepared statement or something else? I wonder if there are any cases where you wouldn't want to automatically issue a sync...

@devinus
Copy link

devinus commented Aug 21, 2012

@kevsmith I'm curious as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants