"Thomas H." <me@alternize.com> writes:
>> Do you actually mean it's trying to write that file? Or is it just
>> sitting there holding the open filehandle?
> well, hard to tell :-)
> according to the log-messages i would assume it is *trying* to write.
The log messages you have don't make it clear which process is trying to
do the fsync, but I would expect it to be the bgwriter. (Possibly you
should modify log_line_prefix to include PID so we can tell a bit
better.)
regards, tom lane