Re: Customize psql prompt to show current_role - Mailing list pgsql-general

From Tom Lane
Subject Re: Customize psql prompt to show current_role
Date
Msg-id 3079980.1727103295@sss.pgh.pa.us
Whole thread Raw
In response to Re: Customize psql prompt to show current_role  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: Customize psql prompt to show current_role
List pgsql-general
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> To get the current role, psql would have to query the database whenever
> it displays the prompt.  That would be rather expensive...

See previous discussion:

https://www.postgresql.org/message-id/flat/CAFj8pRBFU-WzzQhNrwRHn67N0Ug8a9-0-9BOo69PPtcHiBDQMA%40mail.gmail.com

At the time I didn't like the idea too much, but now that we've seen
a second independent request, maybe our opinion of its value should
go up a notch.

            regards, tom lane



pgsql-general by date:

Previous
From: Dominique Devienne
Date:
Subject: Re: Customize psql prompt to show current_role
Next
From: Dominique Devienne
Date:
Subject: Re: Customize psql prompt to show current_role