archive folder housekeeping - Mailing list pgsql-general

From ascot.moss@gmail.com
Subject archive folder housekeeping
Date
Msg-id 8670BB47-99CA-4646-85DB-F501F2188D7C@gmail.com
Whole thread Raw
In response to Re: Recovery.conf and PITR  (Luca Ferrari <fluca1978@infinito.it>)
Responses Re: archive folder housekeeping  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Re: archive folder housekeeping  (Ian Lawrence Barwick <barwick@gmail.com>)
List pgsql-general
Hi,

I have enabled archive in PG (v 9.2.4):

archive_mode = on
archive_command = 'test ! -f /usr/local/pgsql/data/archive/%f && cp %p /usr/local/pgsql/data/archive/%f'

I know that pg_xlog folder is maintained by PostgreSQL automatically,  when the pg_xlog folder hits to certain limit
(pg_xlogis full), it will automatically archive old log files into the archive folder.  Is the parameter
wal_keep_segmentsused to control this limit? 

On the other hand, will PostgreSQL also automatically maintain the archive folder by itself or I need to do some
housekeepingjob to maintain it from time to time?  Is there any PG manual command available to remove archived files by
(archive)date/time?  

Can you  please advise?

regards




pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: Postgres won't start
Next
From: Raymond O'Donnell
Date:
Subject: Re: How to contact Planet PostgreSQL