From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Kori Lane <kori(dot)lane(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: session username in default psql prompt? |
Date: | 2024-03-22 23:34:15 |
Message-ID: | 1211456.1711150455@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> On Fri, Mar 22, 2024 at 4:04 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> I'm not really a fan of this. Right now my prompt looks like this:
>> robert.haas=#
>> If we did this, it would say:
>> robert(dot)haas(at)robert(dot)haas=#
There would be similar duplication for, eg, the postgres user
connected to the postgres database. However, I'm more worried
about the case where they don't match, because then the %~
suggestion doesn't help shorten it.
> Of course, people can put this in their .psqlrc, and I do. The suggestion
> came about because I had a couple of instances where people using the
> default prompt showed me stuff and the problem arose from confusion about
> which user they were connected as.
On the whole, I think we'd get more complaints about the default
prompt having more-or-less doubled in length than we'd get kudos
about this being a great usability improvement. Prompt space is
expensive and precious, at least for people who aren't in the
habit of working in very wide windows.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2024-03-23 00:03:36 | Re: Trying to build x86 version on windows using meson |
Previous Message | Heikki Linnakangas | 2024-03-22 23:09:30 | Re: Combine Prune and Freeze records emitted by vacuum |