Re: [PATCHES] pgbench on mingw needs fflush

2007-03-20 Thread Bruce Momjian
Magnus Hagander wrote: On Tue, Mar 13, 2007 at 05:09:15PM +0900, ITAGAKI Takahiro wrote: Tatsuo Ishii [EMAIL PROTECTED] wrote: Can we distinguish mingw case from others so that we could ifdef out the extra fflush()? The buffered stderr might be a bug of mingw After a little

Re: [PATCHES] pgbench on mingw needs fflush

2007-03-13 Thread Tom Lane
Tatsuo Ishii [EMAIL PROTECTED] writes: Can we distinguish mingw case from others so that we could ifdef out the extra fflush()? Isn't the right fix a single-spot patch to force stderr into unbuffered mode? It's supposed to be that way already per spec. I could see a one-or-two-line patch to

Re: [PATCHES] pgbench on mingw needs fflush

2007-03-13 Thread Magnus Hagander
On Tue, Mar 13, 2007 at 05:09:15PM +0900, ITAGAKI Takahiro wrote: Tatsuo Ishii [EMAIL PROTECTED] wrote: Can we distinguish mingw case from others so that we could ifdef out the extra fflush()? The buffered stderr might be a bug of mingw After a little research, I found that MSDN

Re: [PATCHES] pgbench on mingw needs fflush

2007-03-12 Thread Tatsuo Ishii
Can we distinguish mingw case from others so that we could ifdef out the extra fflush()? -- Tatsuo Ishii SRA OSS, Inc. Japan pgbench reports its progress of loading (N tuples done.) or vacuuming (vacuum...end), but the messages are not printed on the moment on mingw. The reason seems to be the