Postgres >= 9.2 can parse URLs itself, so we should check versions and pass through.
We should also be smart about not including host in the connection string at all if it's not set in the URL, because that affects whether Postgres uses a Unix or TCP socket. See https://botbot.me/freenode/gittip/msg/10532161/.