Re: Small patch to replace 'idle' by 'trans' if transaction is still open

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christof Petig <christof.petig@wtal.de>, Bruce Momjian <pgman@candle.pha.pa.us>, pgsql-patches@postgresql.org
Date: 2000-10-11T16:47:47Z
Lists: pgsql-hackers
Tom Lane writes:

> Christof Petig <christof.petig@wtal.de> writes:
> > I would even propose 'idle (transaction open)' if you agree. (Seemed too
> > long for me)
> 
> No, the ps strings have got to be *short*.  A lot of platforms have a
> tight limit on how much command string ps will show.  I thought 'trans'
> was OK, though perhaps someone has an even better idea?

Since nothing follows the status indicator in the ps display you can
really make it as long as you want; the rest will be truncated.  So you
might want to put it "transaction (idle)", so that the essential
information is first.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/