vacuum process taking more than 33 hours

From: Mario Behring <mariobehring(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: vacuum process taking more than 33 hours
Date: 2007-01-15 14:23:23
Message-ID: 2529.5826.qm@web30013.mail.mud.yahoo.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all,

I've executed a VACUUM FULL on a database 33GB in size. The process was going fine until it reached a index (I guess it's an index) and there it stopped for more than 30 hours...........the whole weekend......

I've canceled it but I desperately need to free some space at the server's disk. I was thinking about using the TRUNCATE statement at the table I know to be the largest one. I have some questions though:
Will the TRUNCATE free disk space?Can I run this command and let the openNMS software running at the same time? The ONMS product will certainly try to execute INCLUDES and such.If the TRUNCATE indeed free disk space, what should I do next, reindex, vacuum ??

Also, what else can I do to avoid this kind of problem? Would a REINDEX fix the problem and let the VACUUM command finish?

Please advise.

Thank you.

Best regards,

Mario Behring


____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2007-01-15 14:32:47 Re: vacuum process taking more than 33 hours
Previous Message Ken 2007-01-15 04:47:46 Re: update query taking 24+ hours