From http://2push.me/mysql-and-postgresql