Re: Add %x to PROMPT1 and PROMPT2 - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: Add %x to PROMPT1 and PROMPT2
Date
Msg-id e04078e8-ae4a-b09d-896d-5f2f5a042248@2ndquadrant.com
Whole thread Raw
In response to Re: Add %x to PROMPT1 and PROMPT2  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: Add %x to PROMPT1 and PROMPT2
List pgsql-hackers
On 26/01/2020 19:48, Fabien COELHO wrote:
> 
> Hello Vik,
> 
>> I cannot ever think of a time when I don't want to know if I'm in a
>> transaction or not (and what its state is).  Every new setup I do, I add
>> %x to the psql prompt.
>>
>> I think it should be part of the default prompt.  Path attached.
> 
> Isn't there examples in the documentation which use the default prompts?
> 
> If so, should they be updated accordingly?

Good catch!
I thought about the documentation but not the examples therein.

Updated patch attached.
-- 
Vik Fearing

Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Add %x to PROMPT1 and PROMPT2
Next
From: Mark Dilger
Date:
Subject: Re: making the backend's json parser work in frontend code