Re: Feature: psql - display current search_path in prompt

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: Feature: psql - display current search_path in prompt
Дата
Msg-id CAGECzQQBsaPHrbJ14y_W4bWDAwjAJ3Kjm9paKPrBR7YudicSwg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Feature: psql - display current search_path in prompt  (Florents Tselai <florents.tselai@gmail.com>)
Список pgsql-hackers
On Mon, 9 Jun 2025 at 17:54, Florents Tselai <florents.tselai@gmail.com> wrote:
> Here’s a quick attempt that makes %S substitue for a search_path
> Like
>  \set PROMPT1 'user:%n search_path: %S'

+   else
+       return PQuser(pset.db);

That seems like a copy paste error. If we don't have data for it, we
should either use the empty string, or some string like "<unknown>".

Other than that, the patch looks good (but I haven't tested it yet).



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