Re: Feature: psql - display current search_path in prompt

Поиск
Список
Период
Сортировка
От Chao Li
Тема Re: Feature: psql - display current search_path in prompt
Дата
Msg-id B7F5001F-D273-4B85-96A4-C7E3BDE069BB@gmail.com
обсуждение исходный текст
Ответ на Re: Feature: psql - display current search_path in prompt  (Florents Tselai <florents.tselai@gmail.com>)
Список pgsql-hackers

> On Oct 25, 2025, at 12:38, Florents Tselai <florents.tselai@gmail.com> wrote:
>
>  <v3-0001-psql-Add-S-prompt-escape-to-display-current-searc.patch>

Overall LGTM. Just one comment:

```
+                    /* current search_path, or "?" if not reported by the server */
+                case 'S':
+                    strlcpy(buf, session_search_path(), sizeof(buf));
+                    break;
```

I guess we also need to update the function comment to add a description for “%S”.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/







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