Search Postgresql Archives

Re: VACUUM and open transactions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux