Re: display hot standby state in psql prompt - Mailing list pgsql-hackers

From Jim Jones
Subject Re: display hot standby state in psql prompt
Date
Msg-id 9d45ca06-cd8b-44bc-9647-c7dd5f4595cd@uni-muenster.de
Whole thread Raw
In response to Re: display hot standby state in psql prompt  (Srinath Reddy Sadipiralla <srinath2133@gmail.com>)
Responses Re: display hot standby state in psql prompt
List pgsql-hackers
Hi Srinath

On 23.07.25 09:03, Srinath Reddy Sadipiralla wrote:
> +1 for the patch,i have reviewed and tested this patch, except these
> below cosmetic changes it LGTM.
>
> cosmetic changes:
> 1) add comment about %i in get_prompt api.

Done.

> 2) maybe we can use read-write instead of read/write to be consistent
> with the
>     naming such as options of target_session_attrs uses read-write.

I believe that 'read/write' is more idiomatic than 'read-write' in this
context. 'Read-only' works as a hyphenated adjective, and 'read/write'
is typically treated as a paired label that indicates two distinct
capabilities --- read and write. What do you think?

v3 attached.

Thanks for the thorough testing and review!

Best, Jim
Attachment

pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: Interrupts vs signals
Next
From: Michael Paquier
Date:
Subject: Re: Custom pgstat support performance regression for simple queries