Re: Vacuum problems

From: "Scot Kreienkamp" <SKreien(at)la-z-boy(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Vacuum problems
Date: 2009-01-05 18:29:47
Message-ID: 37752EAC00ED92488874A27A4554C2F336C07E@lzbs6301.na.lzb.hq
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nothing. I ran a query to see what other queries were running and what
other locks existed at the time. No queries running, no locks. Nothing
running at that time of night except dump, which is finished before the
vacuum job starts.

Thanks,

Scot Kreienkamp
La-Z-Boy Inc.
skreien(at)la-z-boy(dot)com

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Monday, January 05, 2009 1:05 PM
To: Scot Kreienkamp
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Vacuum problems

"Scot Kreienkamp" <SKreien(at)la-z-boy(dot)com> writes:
> The nightly vacuums have been working flawlessly, but about three
weeks
> ago the vacuum full started failing. It was taking about 5-10 minutes
> normally, but all of a sudden it started hitting the command timeout
> that I have set, which is at 60 minutes. I thought that it may be a
> corrupt table or a large amount of content had been deleted from a
> database, so I built a script to loop through each database and run a
> vacuum full analyze on each table individually thinking I would find
my
> problem table. The script finished in 5 minutes!

Maybe the vacuum was blocking waiting for someone's lock on a table?
What else is running in parallel with your nightly vacuum script?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-01-05 18:36:57 Re: Vacuum problems
Previous Message Tom Lane 2009-01-05 18:04:31 Re: Vacuum problems