Re: VACUUM and open transactions

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: VACUUM and open transactions
Date: 2006-10-19 20:22:36
Message-ID: 20061019202236.GD13348@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 19, 2006 at 04:18:50PM -0400, Joseph Shraibman wrote:
> I'm running postgres 8.0.8. I have a table that is updated very
> rapidly, so I vacuum it every 10 minutes. The problem is that I
> sometimes have transactions that hang out for a long time without doing
> anything. These transactions are preventing VACUUM from cleaning up
> tuples that were created and then deleted in transactions that started
> way after the hanging one. Is there any way to fix this?

Sure, don't keep transactions open for so long. Is there a particular
reason you do that?

The problem is that the "old" transaction can see effects of later
started transactions, so VACUUM can't delete the later stuff either...

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph S 2006-10-19 20:25:09 Re: VACUUM and open transactions
Previous Message Joseph Shraibman 2006-10-19 20:18:50 VACUUM and open transactions