Re: psql: make %P prompt option consistent when not connected - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: psql: make %P prompt option consistent when not connected
Date
Msg-id aXqqjk6cv34oYsCU@paquier.xyz
Whole thread Raw
In response to psql: make %P prompt option consistent when not connected  (Chao Li <li.evan.chao@gmail.com>)
List pgsql-hackers
On Wed, Jan 28, 2026 at 04:38:08PM +0800, Chao Li wrote:
> While reviewing and testing patch [1], I noticed that psql’s %P
> prompt option does not check pset.db, which makes it inconsistent
> with other prompt options. As a result, when there is no database
> connection, other prompt elements are suppressed, but the pipeline
> status is still shown.

Point taken.  It's true that it is confusing to show an "off" status
in this case if we don't have an active connection.  Will adjust and
backpatch.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Correction to comment of brin_range_deserialize
Next
From: surya poondla
Date:
Subject: Re: Add comments about fire_triggers argument in ri_triggers.c