Re: POLL: Adding transaction status to default psql prompt - Mailing list pgsql-general

From Ian Barwick
Subject Re: POLL: Adding transaction status to default psql prompt
Date
Msg-id CABvVfJUHp4r019M3EJKex+MFqJVhjo+sBa+2-9gPmEtqixDT3w@mail.gmail.com
Whole thread Raw
In response to POLL: Adding transaction status to default psql prompt  (Vik Fearing <vik@postgresfriends.org>)
List pgsql-general
On Thu, 6 Feb 2020 at 11:55, Vik Fearing <vik@postgresfriends.org> wrote:
Hello,

I proposed a patch to add %x to PROMPT1 and PROMPT2 by default in psql.

The effect of this is:

- nothing at all when not in a transaction,
- adding a '*' when in a transaction or a '!' when in an aborted
  transaction.

Before making a change to a long-time default, a poll in this group was
requested.

Please answer +1 if you want or don't mind seeing transaction status by
default in psql or -1 if you would prefer to keep the current default.

+1 from me.

I've been configuring this in every single .psqlrc I "own" since it was first added in 7.4,
and sorely miss it not being just available in environments I don't "own".


Regards

Ian Barwick

pgsql-general by date:

Previous
From: Matt Zagrabelny
Date:
Subject: Re: POLL: Adding transaction status to default psql prompt
Next
From: Steve Baldwin
Date:
Subject: Re: POLL: Adding transaction status to default psql prompt