Stuck vacuum...

Started by Mike Diehlover 16 years ago3 messagesgeneral
Jump to latest
#1Mike Diehl
mdiehl@diehlnet.com

Hi all.

I'm doing a routine vacuum on my database and it seems to be getting "stuck."

I've got a "servers" table with only a few rows and columns in it and this is
what vacuum has to say:

# VACUUM ANALYZE VERBOSE servers;
INFO: vacuuming "public.servers"
INFO: scanned index "servers_id" to remove 19200 row versions
DETAIL: CPU 0.02s/0.01u sec elapsed 0.03 sec.
INFO: scanned index "servers_name" to remove 19200 row versions
DETAIL: CPU 0.03s/0.01u sec elapsed 0.05 sec.

The problem is that it's been stalled for several minutes. It's beginning to
sound like a hard drive problem. Any other ideas?

--

Take care and have fun,
Mike Diehl.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Mike Diehl (#1)
Re: Stuck vacuum...

Mike Diehl <mdiehl@diehlnet.com> writes:

I'm doing a routine vacuum on my database and it seems to be getting "stuck."

I've got a "servers" table with only a few rows and columns in it and this is
what vacuum has to say:

# VACUUM ANALYZE VERBOSE servers;
INFO: vacuuming "public.servers"
INFO: scanned index "servers_id" to remove 19200 row versions
DETAIL: CPU 0.02s/0.01u sec elapsed 0.03 sec.
INFO: scanned index "servers_name" to remove 19200 row versions
DETAIL: CPU 0.03s/0.01u sec elapsed 0.05 sec.

The problem is that it's been stalled for several minutes. It's beginning to
sound like a hard drive problem. Any other ideas?

Maybe it's waiting for some other session to release a page-level lock.
Have you got anything else running in the database, and if so what is
that doing?

regards, tom lane

#3Mike Diehl
mdiehl@diehlnet.com
In reply to: Tom Lane (#2)
Re: Stuck vacuum...

On Friday 09 October 2009 08:22:52 pm Tom Lane wrote:

Mike Diehl <mdiehl@diehlnet.com> writes:

I'm doing a routine vacuum on my database and it seems to be getting
"stuck."

I've got a "servers" table with only a few rows and columns in it and
this is what vacuum has to say:

# VACUUM ANALYZE VERBOSE servers;
INFO: vacuuming "public.servers"
INFO: scanned index "servers_id" to remove 19200 row versions
DETAIL: CPU 0.02s/0.01u sec elapsed 0.03 sec.
INFO: scanned index "servers_name" to remove 19200 row versions
DETAIL: CPU 0.03s/0.01u sec elapsed 0.05 sec.

The problem is that it's been stalled for several minutes. It's
beginning to sound like a hard drive problem. Any other ideas?

Maybe it's waiting for some other session to release a page-level lock.
Have you got anything else running in the database, and if so what is
that doing?

regards, tom lane

I restarted Postgres and re-ran the vacuum. All seems OK now. Thank you for
your time. I guess I should have refrained from jumping to conclusions.

--

Take care and have fun,
Mike Diehl.