Re: Transaction status in default psql prompt?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Transaction status in default psql prompt?
Date: 2003-09-04 03:31:55
Message-ID: 200309040331.h843Vt909373@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > If you take a close look at the output above, you will see that the
> > prompt shifts one character to the right when you are in a transaction.
> > That is going to look terrible.
>
> It didn't look so bad to me. But anyway, what the %T indicator should
> look like is an orthogonal discussion from whether it should be in the
> default prompt, no?

Yes, I like the transaction status being the default prompt, but I don't
like the prompt shifting. Remember guys who have the current directory
in their prompt --- the thing bounces around all over the place.

Maybe a natural indenting of the transaction commands will look good ---
I don't know, but I think we should look at it before making the
decision on the default appearance.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2003-09-04 03:35:01 ANONCVS? Is it being updated correctly?
Previous Message Tom Lane 2003-09-04 03:29:19 Re: Transaction status in default psql prompt?