Support overriding the host in wait_pgsql
This allows us to wait for a different database, for instance the source of a replication setup.