Re: vacuumdb question/problem

From: David Ondrejik <David(dot)Ondrejik(at)noaa(dot)gov>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: vacuumdb question/problem
Date: 2011-07-15 18:47:51
Message-ID: 4E208B57.6010401@noaa.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom,

It was not consuming any CPU time. I found that another process on the
machine failed. That process was trying to write to a different table
(not the one I was vacuuming) in the database and that table was locked
(not sure why). It produced thousands of errors which caused the log
files to grow large enough that the entire disk was filled, and this
brought everything to a halt.

So I had to kill my process, recover disk space and get the machine back
in working condition for the weekend. I guess I will attempt to do the
full vacuum again next week.

I am still wondering how the vacuum process actually works. When it
throws the output lines that show how many rows are
recoverable/nonremovable, does this mean that the vacuum has completed?
Or do those output lines show the vacuum has scanned through the
database...found what what it is going to recover and then takes on the
vacuum process?

Thanks,
Dave

Tom Lane said the following on 7/15/2011 1:12 PM:
> Simon Riggs<simon(at)2ndQuadrant(dot)com> writes:
>> On Fri, Jul 15, 2011 at 5:10 PM, David Ondrejik<David(dot)Ondrejik(at)noaa(dot)gov> wrote:
>>> Since then, the process has continued to run (for about 20 hrs) without any
>>> additional information being returned.
>> Probably locked behind another long running task that is holding a buffer pin.
> That's possible, or it could be busy vacuuming some (really large?)
> index. Is the process actually busy, as in consuming CPU time according
> to top or other process monitoring tool?
>
> regards, tom lane

Attachment Content-Type Size
david_ondrejik.vcf text/x-vcard 309 bytes

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2011-07-15 19:11:11 Re: vacuumdb question/problem
Previous Message Tom Lane 2011-07-15 17:12:47 Re: vacuumdb question/problem