Re: fix psql \conninfo & \connect when using hostaddr - Mailing list pgsql-hackers

From Noah Misch
Subject Re: fix psql \conninfo & \connect when using hostaddr
Date
Msg-id 20190613050139.GE271415@rfd.leadboat.com
Whole thread Raw
In response to Re: fix psql \conninfo & \connect when using hostaddr  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: fix psql \conninfo & \connect when using hostaddr
List pgsql-hackers
On Wed, Jun 12, 2019 at 02:44:49PM +0200, Fabien COELHO wrote:
> there is no simple way to know whether hostaddr was set at
> the libPQ level

> A solution could be to have a PQdoestheconnectionuseshostaddr(conn)
> function, but I cannot say I'd be thrilled.

PQconninfo() is the official way to retrieve that.



pgsql-hackers by date:

Previous
From: Timur Birsh
Date:
Subject: Re: [PATCH] vacuumlo: print the number of large objects going to be removed
Next
From: Michael Paquier
Date:
Subject: Re: Race conditions with checkpointer and shutdown