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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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.


Put this in .psqlrc:

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

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


Without SSL:



Attachment Content-Type Size
0001-psql-Add-s-prompt-placeholder-for-SSL-status.patch application/x-patch 2.2 KB


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'