Re: idle in transaction process

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: idle in transaction process
Date: 2011-08-22 05:41:29
Message-ID: 4E51EC09.7090408@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/18/11 2:17 AM, tamanna madaan wrote:
> Yes , restarting the slon resolves the issue. But. there are other
> processes also in my application which connect to postgres . Those
> processes can also cause "idle in transaction" postgres connection .
> So, I was wondering if I can make use of tcp_keepalives_idle ,
> tcp_keepalives_interval and tcp_keepalives_count configurations in
> postgresql.conf to get rid of this "idle in transaction" process after
> a certain amount of time . Will this help or not ??

Idle In Transaction means that the process has issued a BEGIN to start a
transaction but is sitting there doing nothing. if they stay that way
for hours, they block vacuum from freeing any tuples since the start of
the oldest transaction.. Long running Idle in Transaction processes
generally indicate a error in your program design.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2011-08-22 05:45:10 Re: idle in transaction process
Previous Message tamanna madaan 2011-08-22 04:52:39 Re: idle in transaction process