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

From Jelte Fennema-Nio
Subject Re: Feature: psql - display current search_path in prompt
Date
Msg-id CAGECzQQBsaPHrbJ14y_W4bWDAwjAJ3Kjm9paKPrBR7YudicSwg@mail.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 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 by date:

Previous
From: Cary Huang
Date:
Subject: Re: Support tid range scan in parallel?
Next
From: Dimitrios Apostolou
Date:
Subject: [PATCH v2] parallel pg_restore: move offset-building phase to before forking