Right, which is why the patch adds fflushes to the Unix implementation of internal_forkexec(). On reflection, it is probably more straightforward to just invoke fork_process() from the Unix version of internal_forkexec() -- attached is a revised patch that does this.
I'll apply this patch to HEAD later today, barring any objections.
-Neil
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org