SSL indicator in psql prompt

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: SSL indicator in psql prompt
Date: 2016-04-01 12:52:24
Message-ID: 56FE6F08.9020001@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-psql-Add-s-prompt-placeholder-for-SSL-status.patch application/x-patch 2.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2016-04-01 12:58:15 Re: [PATCH] Phrase search ported to 9.6
Previous Message Abhijit Menon-Sen 2016-04-01 12:31:36 Re: dealing with extension dependencies that aren't quite 'e'