Re: psql color hostname prompt - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: psql color hostname prompt
Date
Msg-id 20160425143645.GA22619@depesz.com
Whole thread Raw
In response to psql color hostname prompt  (Cal Heldenbrand <cal@fbsdata.com>)
List pgsql-general
On Mon, Apr 25, 2016 at 08:55:21AM -0500, Cal Heldenbrand wrote:
> The only outside tool it requires is lsof to determine the hostname of the
> remote socket.  Otherwise it uses plain stuff like awk / sec and bash tools.

Why would you need lsof to get hostname for remote connection, when you
can use %M ?

Best regards,

depesz



pgsql-general by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: psql color hostname prompt
Next
From: Francisco Olarte
Date:
Subject: Re: psql color hostname prompt