Upgrades the postgres module.