We have a streaming replication environment setup for testing, and for some reason the archive log directory (pg_xlog) seems to be building up. This has happened twice now. The last time it happened we simply rebuilt (because it's test) replication.
Can someone help me understand why this might be happening and how to fix it?
Since we are streaming, the data seems to be in sync between the master and slave.