Fix postgresql server deployment issue