The issue with postgres 11 in travis is that by default uses port 5433 and does not listen in localhost address
- Update the postgresql.conf listen_addresses to
listen_addresses = "*" - Update the postgresql.conf port to
5432 - Restart postgresql service