I\'m using heroku and heroku postgresql. How do I set db command timeout so that I get an exception when a sql command takes longer than 10 seconds?
Configure your database.yml like this, the key bit being the variables hash:
defaults: &default adapter: postgresql encoding: unicode pool: 5 min_messages: warning variables: statement_timeout: 5000