Re: Customize psql prompt to show current_role

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Customize psql prompt to show current_role
Дата
Msg-id 3079980.1727103295@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Customize psql prompt to show current_role  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Customize psql prompt to show current_role
Список 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 по дате отправления: