From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Charles(dot)Hou" <ivan(dot)hou(at)msa(dot)hinet(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Idle in transcation problem? |
Date: | 2008-08-19 15:21:58 |
Message-ID: | 21083.1219159318@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Charles.Hou" <ivan(dot)hou(at)msa(dot)hinet(dot)net> writes:
> i use the "ps -ef | grep postgres" to see all the connections. the
> connection's status is "Idle in transcation".
> and i use the " du -h /mydb" to check the disk size. The disk size of
> mydb has increased from 400MB to 600MB.
> Why? because of the "idle in transcation" ?
Maybe. Old open transactions would prevent VACUUM from removing deleted
row versions (because they might still be visible to those
transactions). So if this condition persisted for a long time it could
be responsible for table bloat. It's a good idea to make sure your
client code doesn't leave transactions sitting open for long periods.
> my pg version:8.1.3
You really ought to get onto a more recent sub-release ... that one is
2.5 years old and has many known bugs.
http://www.postgresql.org/docs/8.1/static/release.html
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-08-19 15:29:51 | Re: Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully |
Previous Message | Bill Moran | 2008-08-19 15:17:52 | Re: Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully |