what would this do to my Database?

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

what would this do to my Database?

Postby ouird » Fri Jan 09, 2009 2:50 pm

If i deleted the PostgreSQL logs that are stored in that directory? would this affect my PTDB in any way?
ouird
 
Posts: 60
Joined: Tue Mar 04, 2008 5:55 am

Re: what would this do to my Database?

Postby WhiteRider » Fri Jan 09, 2009 6:49 pm

I don't know that much about the inner workings of postgres but I'm sure I remember someone saying recently that the logs are important. I can't find the post now, though. I would hold off deleting them until we can find out for sure.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: what would this do to my Database?

Postby ouird » Fri Jan 09, 2009 7:01 pm

fair enough...thank you
ouird
 
Posts: 60
Joined: Tue Mar 04, 2008 5:55 am

Re: what would this do to my Database?

Postby APerfect10 » Sat Jan 10, 2009 12:01 pm

The only log files which are safe to delete are within the data/pg_log directory. You can delete all of those files in that directory...

Other directories such as pg_clog and pg_xlog should not be touched.

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4465
Joined: Sat Dec 08, 2007 6:03 pm

Re: what would this do to my Database?

Postby ouird » Sat Jan 10, 2009 2:31 pm

thank you!! what about the ones in the "Base" folder? thats where most of my space is being taken up.
ouird
 
Posts: 60
Joined: Tue Mar 04, 2008 5:55 am

Re: what would this do to my Database?

Postby WhiteRider » Sat Jan 10, 2009 6:38 pm

I've asked Derek to take another look at this.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: what would this do to my Database?

Postby ouird » Sat Jan 10, 2009 7:27 pm

thanks again!!!


i have to say your reponses are very quick. says something about your product.
ouird
 
Posts: 60
Joined: Tue Mar 04, 2008 5:55 am

Re: what would this do to my Database?

Postby APerfect10 » Sun Jan 11, 2009 11:32 am

ouird wrote:thank you!! what about the ones in the "Base" folder? thats where most of my space is being taken up.


That is your actual database files. DO NOT DELETE THEM.

It is only safe to delete the files in the data/pg_log directory.

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4465
Joined: Sat Dec 08, 2007 6:03 pm


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 32 guests

cron