On Tue, Jun 10, 2025 at 2:08 AM Jelte Fennema-Nio <postg...@jeltef.nl>
wrote:

> On Mon, 9 Jun 2025 at 17:54, Florents Tselai <florents.tse...@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>".
>

Opted for an empty string


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

Btw - I haven't worked on bin/psql code;
aren't these auto tested?

CF: https://commitfest.postgresql.org/patch/5808/

Attachment: v1-0001-Make-S-available-in-psql-PROMPTs-to-indicate-the-.patch
Description: Binary data

Attachment: v1-0002-Return-empty-string-if-search_path-not-found.patch
Description: Binary data

Reply via email to