"Marko Kreen" <markokr(at)gmail(dot)com> writes:
> If you want to use fwrite as string operator, then maybe
> should replace it with fwrite_unlocked?
ISTM that in a single-threaded application such as the backend,
it should be libc's responsibility to avoid such overhead, not
ours.
regards, tom lane