PostgreSQL is HUGE on my harddrive

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

Re: PostgreSQL is HUGE on my harddrive

Postby puyanwei » Sun Jun 20, 2010 10:14 am

Here is my windirstatanalysis of space allocation;

[ img ]

PG Admin is also showing that I have 2 databases, postgres and PT3DB (which is linked to PT3), do you think this is significant?

[ img ]

[ img ]
puyanwei
 
Posts: 37
Joined: Wed Oct 21, 2009 8:25 am

Re: PostgreSQL is HUGE on my harddrive

Postby WhiteRider » Sun Jun 20, 2010 11:48 am

You're using the PostgreSQL 9.0.0 beta, are you?
It may be that that uses more space, or it may have additional logging on by default since it's beta software.

The 'postgres' database is always there - that's nothing to worry about.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: PostgreSQL is HUGE on my harddrive

Postby puyanwei » Sun Jun 20, 2010 7:03 pm

Version 1.12.0 Beta.
puyanwei
 
Posts: 37
Joined: Wed Oct 21, 2009 8:25 am

Re: PostgreSQL is HUGE on my harddrive

Postby kraada » Mon Jun 21, 2010 8:51 am

We haven't tested PostgreSQL 9.0's beta revisions yet - which is what it shows in the PGAdmin view you pasted.

The postgres database is always there by default though, it controls other things and is required for proper PostgreSQL functioning.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PostgreSQL is HUGE on my harddrive

Postby puyanwei » Mon Jun 21, 2010 5:03 pm

So do you think that is the reason why my database is so big? Seems kinda weird reason...
puyanwei
 
Posts: 37
Joined: Wed Oct 21, 2009 8:25 am

Re: PostgreSQL is HUGE on my harddrive

Postby WhiteRider » Tue Jun 22, 2010 4:10 am

It's possible - since it's still beta software there could be additional logging for instance, or another reason that more space is used.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: PostgreSQL is HUGE on my harddrive

Postby Darvini » Thu Dec 23, 2010 12:26 pm

I have only 600 k hands but my PostgreSQL folder is 90 GB! How can I free space from it? 81 GB of it is in the pg_log folder.

And is it normal to have 10 postgres.exe processes running at the same time while autoimporting?
Darvini
 
Posts: 182
Joined: Fri Oct 30, 2009 12:15 pm

Re: PostgreSQL is HUGE on my harddrive

Postby kraada » Thu Dec 23, 2010 12:35 pm

You can safely delete all but the most recent file in the pg_log folder.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PostgreSQL is HUGE on my harddrive

Postby Darvini » Thu Dec 23, 2010 12:46 pm

The most recent file is only 1 KB as most of the files are over 10 MB so you are sure I can delete them? Sorry to ask again, but just a little worried about deleting 81 GB. :/ If they are not needed why arent they erased automatically?
Darvini
 
Posts: 182
Joined: Fri Oct 30, 2009 12:15 pm

Re: PostgreSQL is HUGE on my harddrive

Postby Darvini » Thu Dec 23, 2010 1:07 pm

Are these the log files that are created with the logging enabled? If they are cant I just turn the logging off and stop the generating of these files on regular bases? Because they have been building up 5 GB on some days!
Darvini
 
Posts: 182
Joined: Fri Oct 30, 2009 12:15 pm

PreviousNext

Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 6 guests