Martijn van Oosterhout <kleptog@svana.org> writes:
> Hmm, a little late here, but why not just unbuffer stdout, or are there
> reasons to preserve some buffering?
Performance. Unbuffered I/O is expensive, and not attractive in situations
where an fflush or two will solve the problem.
regards, tom lane