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

Properly discover a connection is closed in postgresql_adapter #6477

Merged

Conversation

steveklabnik
Copy link
Member

PQstatus doesn't properly test if future operations will succeed. A
PQping function is added to libpq in PostgreSQL 9.1, but if we rely
on it, everyone on earlier versions of Postgres is out of luck,
and the pg gem wouldn't have the 'fix' until the next release.

Thanks to @cbrecabarren and @ged for handling all the dirty details.

Closes #3392.

/cc @tenderlove @jonleighton

PQstatus doesn't properly test if future operations will succeed. A
PQping function is added to libpq in PostgreSQL 9.1, but if we rely
on it, everyone on earlier versions of Postgres is out of luck,
and the pg gem wouldn't have the 'fix' until the next release.

Thanks to @cbrecabarren and @ged for handling all the dirty details.

Closes rails#3392.
rafaelfranca added a commit that referenced this pull request May 30, 2012
…tion

Properly discover a connection is closed in postgresql_adapter
@rafaelfranca rafaelfranca merged commit c56ef67 into rails:master May 30, 2012
rafaelfranca added a commit that referenced this pull request May 30, 2012
…tion

Properly discover a connection is closed in postgresql_adapter
@stevecj stevecj mentioned this pull request Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PostgreSQL adapter: reconnection problem
3 participants