Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Reconnection in PostgreSQLAdapter
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JT Gleason  
View profile  
 More options Oct 9 2012, 5:52 pm
From: JT Gleason <j...@justin.tv>
Date: Tue, 9 Oct 2012 14:52:49 -0700 (PDT)
Local: Tues, Oct 9 2012 5:52 pm
Subject: Reconnection in PostgreSQLAdapter

Hello,

The Mysql code has reconnection built in due to the msql client supporting
it natively. However Postgress does not have any code like this due to the
lack of native support.

Is their any standard way of doing this currently?

I was able to get it to work by creating a query_with_reconnect and a
execute_with_reconnect and alias_method_chain :query, :reconnect and monkey
patching that into PostgreSQLAdapter.

Is this the best way of doing this? All of my hunting didn't find anything
that code that supported this.

Thanks for any help or insight you can give.

Jt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.