Jeff Ross <jross(at)wykids(dot)org> writes:
> In the meantime, I now have 242 16MB files in pg_xlog/. The
> archive_status directory in pg_xlog/has a matching .done file for all
> but the most recent of those pg_xlog files.
What have you got checkpoint_segments set to?
> Am I correct in thinking that I can delete most if not all of the
> pg_xlog/ files that have a matching .done entry in
> pg_xlog/archive_status/ ? Or is there a better way?
The system should be removing them for itself once there are too many.
Trying to remove them manually is a good recipe for creating trouble.
regards, tom lane