More Postgresql improvements