Unix Technical Forum

pg_clog questions

This is a discussion on pg_clog questions within the pgsql Admins forums, part of the PostgreSQL category; --> While checking our server, I noticed quite a few files in the pg_clog directory. These files date from today ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:13 AM
Benjamin Krajmalnik
 
Posts: n/a
Default pg_clog questions

While checking our server, I noticed quite a few files in the pg_clog
directory.

These files date from today back to the day when I installed PostgreSQL.

Is there a maintenance task which can be run to purge the files which
are no longer needed?

I assume the majority of them are not needed, since the data has already
been commited.



I back up nightly with pg_dump, but this obviously does not reset these
files.

Do I need to do a backup with archiving in order to clear these out?



TIA,



Benjamin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:13 AM
Tom Lane
 
Posts: n/a
Default Re: pg_clog questions

"Benjamin Krajmalnik" <kraj@illumen.com> writes:
> While checking our server, I noticed quite a few files in the pg_clog
> directory.


> Is there a maintenance task which can be run to purge the files which
> are no longer needed?


VACUUM. If they're not disappearing, you aren't running an adequate
vacuum regime --- missing out some databases, perhaps?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com