Re: psql color hostname prompt

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Cal Heldenbrand <cal(at)fbsdata(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql color hostname prompt
Date: 2016-04-25 14:36:45
Message-ID: 20160425143645.GA22619@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Olarte 2016-04-25 14:39:03 Re: psql color hostname prompt
Previous Message Francisco Olarte 2016-04-25 14:33:30 Re: psql color hostname prompt