Re: idle in transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rich Ryan" <rich(at)usedcars(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: idle in transaction
Date: 2001-12-11 00:30:31
Message-ID: 5390.1008030631@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Rich Ryan" <rich(at)usedcars(dot)com> writes:
> If I kill pid 4168, the idle in transaction process, then the vacuum and all
> the other waiting processes will proceed fine.

You've got a client that is sitting with an open transaction block ---
ie, BEGIN, do something, go to sleep without issuing COMMIT/ROLLBACK.

In 7.1 the "do something" could just be a SELECT; that's still
sufficient to block VACUUM. I think that 7.0 might have been a little
laxer about that, and would not hold a lock for a SELECT-only
transaction.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-12-11 00:32:43 Re: Vacuum errors and warnings
Previous Message Tom Lane 2001-12-11 00:24:20 Re: [GENERAL] How to get database schema without pg_dump?