Here is my quick-and-dirty recipe for how to make the switch a Heroku app from MySQL to Postgresql with minimal downtime.