Re: VACUUM and open transactions - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: VACUUM and open transactions
Date
Msg-id 20061019202236.GD13348@svana.org
Whole thread Raw
In response to VACUUM and open transactions  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: VACUUM and open transactions  (Joseph S <jks@selectacast.net>)
Re: VACUUM and open transactions  (Ron Johnson <ron.l.johnson@cox.net>)
List 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@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Joseph Shraibman
Date:
Subject: VACUUM and open transactions
Next
From: Joseph S
Date:
Subject: Re: VACUUM and open transactions