Re: [PATCHES] Small patch to replace 'idle' by 'trans' if transactionis still open

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, The Hermit Hacker <scrappy(at)hub(dot)org>, Christof Petig <christof(at)petig-baender(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] Small patch to replace 'idle' by 'trans' if transactionis still open
Date: 2001-01-24 15:53:43
Message-ID: 200101241553.KAA27634@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> Tom Lane writes:
>
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > Any solid consensus on this?
> >
> > I'm for it (given a short status string --- "idle in tx" or "idle in trans"
> > seem fine). Marc's for it. Who's against it?
>
> (I'm not.) If you're going to do "idle in trans" you might as well spell
> it out. The string will be truncated to the allowed length with no penalty.

OK, patch applied:

#$ ps -ax|grep post
27085 ?? Ss 0:00.05 ./bin/postmaster -B 384 -i -d0 -o -F -d0
27108 ?? S 0:00.04 postgres test [local] idle (postmaster)
27150 p7 S+ 0:00.01 grep post
#$ ps -ax|grep post
27085 ?? Is 0:00.05 ./bin/postmaster -B 384 -i -d0 -o -F -d0
27108 ?? S 0:00.04 postgres test [local] idle in transaction (postmaster
27185 p7 S+ 0:00.02 grep post
#$

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 7.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-01-24 15:59:18 Cleanup time
Previous Message Peter Eisentraut 2001-01-24 15:53:05 Re: [PATCHES] Small patch to replace 'idle' by 'trans' if transactionis still open

Browse pgsql-patches by date

  From Date Subject
Next Message Gunnar R|nning 2001-01-24 16:02:08 Re: Re: [PATCHES] Re: Fixes and enhancements to JDBC driver (take 2)
Previous Message Peter Eisentraut 2001-01-24 15:53:05 Re: [PATCHES] Small patch to replace 'idle' by 'trans' if transactionis still open