Customize psql prompt to show current_role

Поиск
Список
Период
Сортировка
От Dominique Devienne
Тема Customize psql prompt to show current_role
Дата
Msg-id CAFCRh-_VwScttZi4R8grSd-b=7qguAnSzXp_+jbdpUkp=TfxPQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Customize psql prompt to show current_role
Список pgsql-general
Hi. I've successfully customized my psql PROMPT1,
using %n for session_user, but I'd like to see
current_role as well. And I can't seem to find a way.

I didn't find a direct \x for it.
I didn't find a %'X' variable for it.
I didn't find a command to %`X` either.
(and X = `select current_role` does not work).

Surely there's a way, no? Thanks, --DD



В списке pgsql-general по дате отправления: