pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedVacuum full hang
5+ messages / 3 participants
[nested] [flat]
* Vacuum full hang
@ 2003-02-02 13:14 Gaetano Mendola <mendola@bigfoot.com>
0 siblings, 2 replies; 5+ messages in thread
From: Gaetano Mendola @ 2003-02-02 13:14 UTC (permalink / raw)
To: pgsql-admin
I'm trying to vacuum full a table ( Postgres 7.2.3 )
but the command:
vacuum full <my_table>
hang and all processes that are trying to update that table hang too,
the CPU occupation for the process that perform the
vacuum is 0. What is going on?
Ciao
Gaetano
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Vacuum full hang
@ 2003-02-02 13:25 mallah@trade-india.com
parent: Gaetano Mendola <mendola@bigfoot.com>
1 sibling, 1 reply; 5+ messages in thread
From: mallah@trade-india.com @ 2003-02-02 13:25 UTC (permalink / raw)
To: mendola@bigfoot.com; +Cc: pgsql-admin
Hmm. VACUUM FULL is supposed to do that only i guess.
since version 7.2 ordinary VACUUM does not locks the table.
and VACUUM can be performed on a live system.
VACUUM FULL does the disk space reclaimation and is supposed to lock
table to prevent updates.
i guess you can do a VACUUM ANALYZE on the table instead.
regds
Mallah.
> I'm trying to vacuum full a table ( Postgres 7.2.3 )
> but the command:
> vacuum full <my_table>
> hang and all processes that are trying to update that table hang too, the CPU occupation for
> the process that perform the
> vacuum is 0. What is going on?
>
>
>
> Ciao
> Gaetano
>
>
>
> ---------------------------(end of broadcast)--------------------------- TIP 5: Have you
> checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
-----------------------------------------
Get your free web based email at trade-india.com.
"India's Leading B2B eMarketplace.!"
http://www.trade-india.com/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Vacuum full hang
@ 2003-02-02 13:33 Gaetano Mendola <mendola@bigfoot.com>
parent: mallah@trade-india.com
0 siblings, 1 reply; 5+ messages in thread
From: Gaetano Mendola @ 2003-02-02 13:33 UTC (permalink / raw)
To: pgsql-admin
<mallah@trade-india.com> wrote in message
news:8162.203.122.61.30.1044192306.squirrel@mail.trade-india.com...
>
>
> Hmm. VACUUM FULL is supposed to do that only i guess.
>
> since version 7.2 ordinary VACUUM does not locks the table.
> and VACUUM can be performed on a live system.
>
> VACUUM FULL does the disk space reclaimation and is supposed to lock
> table to prevent updates.
>
> i guess you can do a VACUUM ANALYZE on the table instead.
>
> regds
> Mallah.
Your guess is wrong, in my case the vacuum analyze is not enough, I have a
lot
of space wasted in my HD, I need a vacuum analyze and I don't care if some
process
during the vacuum hang ( just during the vacuum operation ) but here the
strange is
that also the "vacuum" hang.
Ciao
Gaetano
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Vacuum full hang
@ 2003-02-02 13:41 mallah@trade-india.com
parent: Gaetano Mendola <mendola@bigfoot.com>
0 siblings, 0 replies; 5+ messages in thread
From: mallah@trade-india.com @ 2003-02-02 13:41 UTC (permalink / raw)
To: mendola@bigfoot.com; +Cc: pgsql-admin
are u sure VACUUM FULL is hanging?
run in verbose mode...
VACUUM FULL VERBOSE ANALYZE <tablename>
and you are really desperate get the pid of the
backend who is doing the vacuum and
strace -p <pid> i am sure u will see it spitting lots of read and writes.
;-)
regds
mallah.
> <mallah@trade-india.com> wrote in message
> news:8162.203.122.61.30.1044192306.squirrel@mail.trade-india.com...
>>
>>
>> Hmm. VACUUM FULL is supposed to do that only i guess.
>>
>> since version 7.2 ordinary VACUUM does not locks the table.
>> and VACUUM can be performed on a live system.
>>
>> VACUUM FULL does the disk space reclaimation and is supposed to lock table to prevent updates.
>>
>> i guess you can do a VACUUM ANALYZE on the table instead.
>>
>> regds
>> Mallah.
>
> Your guess is wrong, in my case the vacuum analyze is not enough, I have a lot
> of space wasted in my HD, I need a vacuum analyze and I don't care if some process
> during the vacuum hang ( just during the vacuum operation ) but here the strange is
> that also the "vacuum" hang.
>
> Ciao
> Gaetano
>
>
>
> ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and
> unsubscribe commands go to majordomo@postgresql.org
-----------------------------------------
Get your free web based email at trade-india.com.
"India's Leading B2B eMarketplace.!"
http://www.trade-india.com/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Vacuum full hang
@ 2003-02-02 17:46 Tom Lane <tgl@sss.pgh.pa.us>
parent: Gaetano Mendola <mendola@bigfoot.com>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Lane @ 2003-02-02 17:46 UTC (permalink / raw)
To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: pgsql-admin
"Gaetano Mendola" <mendola@bigfoot.com> writes:
> I'm trying to vacuum full a table ( Postgres 7.2.3 )
> but the command:
> vacuum full <my_table>
> hang and all processes that are trying to update that table hang too,
> the CPU occupation for the process that perform the
> vacuum is 0. What is going on?
Are you sure it's actually hung, and not busy doing the vacuum? Vacuum
is generally I/O bound not CPU bound, so I place little faith in using
the CPU idle time to decide that it's not doing anything.
If it *is* waiting, the reason is probably that some other process has a
lock on the table and is failing to commit its transaction and release
the lock. The vacuum will be queued up waiting to get exclusive lock
--- and everything else that might want to access the table will queue
up behind the vacuum.
In 7.3 you could look at the pg_locks view to confirm that idea, but
in 7.2 you can't do much more than look at ps to see if there are any
"idle in transaction" processes. Those would be the most likely
culprits to be sitting on locks.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-02-02 17:46 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-02 13:14 Vacuum full hang Gaetano Mendola <mendola@bigfoot.com>
2003-02-02 13:25 ` mallah@trade-india.com
2003-02-02 13:33 ` Gaetano Mendola <mendola@bigfoot.com>
2003-02-02 13:41 ` mallah@trade-india.com
2003-02-02 17:46 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox