Skip to content

Automatically syncing after database error#14

Open
kevsmith wants to merge 2 commits into
wg:masterfrom
chef-boneyard:autosync
Open

Automatically syncing after database error#14
kevsmith wants to merge 2 commits into
wg:masterfrom
chef-boneyard:autosync

Conversation

@kevsmith

@kevsmith kevsmith commented Feb 3, 2012

Copy link
Copy Markdown

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

wg commented Mar 8, 2012

Copy link
Copy Markdown
Owner

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

devinus commented Aug 21, 2012

Copy link
Copy Markdown

@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