Re: Small patch to replace 'idle' by 'trans' if transaction is still open - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Small patch to replace 'idle' by 'trans' if transaction is still open
Date
Msg-id Pine.LNX.4.21.0010111841560.767-100000@peter.localdomain
Whole thread Raw
In response to Re: Small patch to replace 'idle' by 'trans' if transaction is still open  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
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/


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Small patch to replace 'idle' by 'trans' if transaction is still open
Next
From: Philip Warner
Date:
Subject: Re: Small patch to replace 'idle' by 'trans' if transaction is still open