Fix the postgresql installation