Kevin Kempter <kevin(at)kevinkempterllc(dot)com> writes:
> What's the relationship between wal_buffers and checkpoint_segments?
None particularly.
> even
> though the max distance between checkpoints is 32 segments, is there
> something that controls the number of files/segments in the pg_xlog dir ?
The system is designed to settle at 2*checkpoint_segments+1 files in
pg_xlog, assuming that you have activity spikes sufficient to drive it
up to that level at all.
regards, tom lane