Whenever I do a database migration that changes a table structure, I
get a zillion of these errors:

ActiveRecord::StatementInvalid: PGError: ERROR: cached plan must not
change result type : SELECT "products".* FROM "products" WHERE
"products"."id" = $1 LIMIT 1

The Rails processes throw the above exception until they are
restarted.

This screws up my zero-downtime deploys completely.

I wonder if it would be possible for ActiveRecord to catch this
exception and retry it?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 23, '11 at 12:29a
activeSep 23, '11 at 12:29a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Joe Van Dyk: 1 post

People

Translate

site design / logo © 2021 Grokbase