Re: Feature: psql - display current search_path in prompt - Mailing list pgsql-hackers

From Chao Li
Subject Re: Feature: psql - display current search_path in prompt
Date
Msg-id B7F5001F-D273-4B85-96A4-C7E3BDE069BB@gmail.com
Whole thread Raw
In response to Re: Feature: psql - display current search_path in prompt  (Florents Tselai <florents.tselai@gmail.com>)
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Logical Replication of sequences
Next
From: Dean Rasheed
Date:
Subject: Re: Improving and extending int128.h to more of numeric.c