cluster stops when not enough hard space

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

cluster stops when not enough hard space

Postby PT23 » Wed Aug 27, 2008 12:46 pm

Hi I have a database where I just importet like 5mio hands, thats aprox. 40Gb in the SQL Database.
Now, postgreSQL is intalled on a partition where there are only 7Gb left and when I now make a cluster
postgreSQL makes temporary files that get rather large, so large that my hard space is not enough.
But instead of telling me this problem PT3 just stops the cluster and tells me it is done as if everything whent all right which cant be,
it took much too short time and happens exactly when the temps fill the left hard space and can't grow any bigger.
The outcome is that spadeeye cant read the database properly, it gets no stats.

What I'm probably gonna do is, wait for the next beta that enables me to purge selective data since I have a lot
of hands of the wrong limit in there, and then try again.
But perhaps you guys should address this and implement a kinda error message. And why does the cluster needs more
than 7 GB temporal space to cluster a 40GB database?

P.S.: What about disc deframentation? When I do a defragmentation of that partition after a cluster does that f*ck up the cluster or are theese two different shoes?
PT23
 
Posts: 17
Joined: Fri Apr 25, 2008 11:53 am

Re: cluster stops when not enough hard space

Postby WhiteRider » Thu Aug 28, 2008 3:59 am

I can't find the post now but I'm sure that Josh said yesterday that you should cluster and vacuum, then defrag, then analyse and build the cache.

I don't know enough about postgres to answer the rest of your points.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: cluster stops when not enough hard space

Postby PT23 » Thu Aug 28, 2008 8:55 am

The post u are mentioning is the new beta 16 thread.
And there is no mention of the selective purge feature that was promissed for this release
or perhaps I got it wrong and it was ment for beta 17.
Well I still have the problem with the hard space so I guess I have to export all hands
deinstall everything and install and import on a larger partition.
Pritty anoying but I guess I have no other option.
PT23
 
Posts: 17
Joined: Fri Apr 25, 2008 11:53 am

Re: cluster stops when not enough hard space

Postby WhiteRider » Thu Aug 28, 2008 10:29 am

Selective Purge is listed as an upcoming feature, but not specifically for beta 16.
I expect it to be added within the next couple of betas - there may be another bug fix beta before the next few features, but keep an eye on the Development Timeline for Josh's updates.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: cluster stops when not enough hard space

Postby APerfect10 » Fri Aug 29, 2008 11:48 pm

If you know how to execute SQL commands via Pgadmin, you can individually cluster each table one by one which should limit the amount of temporary disk space required.

CLUSTER <table name>;

Repeat for every table.

Best regards,

Derek

PS. Selective purging was never scheduled for Beta 16. It will make it into a release by the end of September at the very latest...
APerfect10
Site Admin
 
Posts: 4493
Joined: Sat Dec 08, 2007 6:03 pm


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests