Thursday, September 22, 2011

[Rails] Possible to disable prepared statements on postgres?

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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate