On 11/24/2016 10:38 PM, Andreas Karlsson wrote:
> To me it feels like the proper fix would be to make PQHost() return the
> value of the host parameter rather than the hostaddr (maybe add a new
> field in the pg_conn_host struct). But would be a behaviour change which
> might break someones application. Thoughts?
I have attached a proof of concept patch for this. Remaining work is
investigating all the callers of PQhost() and see if any of them are
negatively affected by this patch and cleaning up the code some.
Andreas