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

From: Christof Petig <christof(dot)petig(at)wtal(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Small patch to replace 'idle' by 'trans' if transaction is still open
Date: 2000-10-11 06:54:29
Message-ID: 39E40EA5.4DCFAB1E@wtal.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > I can't decide if this is of general use. My inclination is that
> > someone in a transaction sitting a prompt should still show as idle.
>
> The idea seemed good to me, although I didn't look at the code to see
> if the implementation was any good ;-). I know we've frequently had
> questions on the lists where it was interesting to know if any
> transactions were being held open --- and right now there's no easy
> way to tell.
>
> regards, tom lane

I would even propose 'idle (transaction open)' if you agree. (Seemed too
long for me)
The patch is _trivial_ a string changed to a condifional operator and two
strings (two times). A two liner.

Christof

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message fabrizio.ermini 2000-10-11 09:02:24 Re: Re: [HACKERS] My new job
Previous Message Bruce Momjian 2000-10-11 03:20:42 Re: Re: [HACKERS] My new job

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2000-10-11 14:03:00 Re: Small patch to replace 'idle' by 'trans' if transaction is still open
Previous Message Denis Perchine 2000-10-11 04:27:43 Re: Large objects in one table patch