Re: vacuum, dead rows, usual solutions didn't help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gábor Farkas <gabor(at)nekomancer(dot)net>
Cc: Erik Jones <erik(at)myemma(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: vacuum, dead rows, usual solutions didn't help
Date: 2008-01-23 15:59:25
Message-ID: 21031.1201103965@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-1?Q?G=E1bor_Farkas?= <gabor(at)nekomancer(dot)net> writes:
> and this is still a mystery for me, because i understand that
> idle-in-transaction is wrong, but even so, a process that i start today,
> in my opinion simply cannot block the recovery of dead rows, that were
> deleted yesterday.

Well, it's not one but two longest-transaction-lifetimes. That is,
take the oldest transaction that's running now, and consider the
oldest transaction that was running when it started. VACUUM can
reclaim rows that were deleted by transactions that started before
that one. You didn't explain your application's behavior exactly,
but does that help?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rick Schumeyer 2008-01-23 16:04:05 Re: Tips for upgrading from 7.4
Previous Message Gábor Farkas 2008-01-23 15:33:54 Re: vacuum, dead rows, usual solutions didn't help