Based on these links
https://github.com/rails/rails/pull/6654#issuecomment-7684067
https://github.com/rails/rails/pull/7632
It looks like it has been fixed in master (Rails 4.0) and back-ported to
3.2 1 month ago so I assume it should be available in the next 3.2 release.
On 10/10/12 06:52, JT Gleason wrote:> 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 received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Core" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-core/-/Z8Ja7ZOjv9wJ.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.