SSL indicator in psql prompt - Mailing list pgsql-hackers

From Peter Eisentraut
Subject SSL indicator in psql prompt
Date
Msg-id 56FE6F08.9020001@gmx.net
Whole thread Raw
Responses Re: SSL indicator in psql prompt  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
Re: SSL indicator in psql prompt  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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?

Attachment

pgsql-hackers by date:

Previous
From: Abhijit Menon-Sen
Date:
Subject: Re: dealing with extension dependencies that aren't quite 'e'
Next
From: Teodor Sigaev
Date:
Subject: Re: [PATCH] Phrase search ported to 9.6