Fix postgresql issue on Travis