Re: POLL: Adding transaction status to default psql prompt

From: Ian Barwick <ian(dot)barwick(at)2ndquadrant(dot)com>
To: Vik Fearing <vik(at)postgresfriends(dot)org>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: POLL: Adding transaction status to default psql prompt
Date: 2020-02-06 03:49:59
Message-ID: CABvVfJUHp4r019M3EJKex+MFqJVhjo+sBa+2-9gPmEtqixDT3w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 6 Feb 2020 at 11:55, Vik Fearing <vik(at)postgresfriends(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Baldwin 2020-02-06 03:55:44 Re: POLL: Adding transaction status to default psql prompt
Previous Message Matt Zagrabelny 2020-02-06 03:41:05 Re: POLL: Adding transaction status to default psql prompt