Re: SSL indicator in psql prompt - Mailing list pgsql-hackers

From Shulgin, Oleksandr
Subject Re: SSL indicator in psql prompt
Date
Msg-id CACACo5TEKcP_bf-u2Xb_-piz6N7LL9kX-YGX5FbTTnCATf5yeQ@mail.gmail.com
Whole thread Raw
In response to SSL indicator in psql prompt  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Fri, Apr 1, 2016 at 2:52 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
I like how browsers show a little lock in the address bar depending on
whether SSL is in use.  This could be useful in psql as well.  Here is a
prototype patch.

Example:

Put this in .psqlrc:

\set PROMPT1 '%s%/%R%# '

$ psql test
psql (9.6devel)
Type "help" for help.

🔒test=#

Without SSL:

🃏test=#

Comments?

Sounds reasonable.  What is the meaning of the latter symbol?

--
Alex

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: pg_xlogdump fails to handle WAL file with multi-page XLP_FIRST_IS_CONTRECORD data
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: [PATCH] Phrase search ported to 9.6