pgbench on mingw needs fflush - Mailing list pgsql-patches

From ITAGAKI Takahiro
Subject pgbench on mingw needs fflush
Date
Msg-id 20070313143526.6096.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Whole thread Raw
Responses Re: pgbench on mingw needs fflush  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Re: pgbench on mingw needs fflush  (Tatsuo Ishii <ishii@postgresql.org>)
List pgsql-patches
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 buffering of stderr. This patch adds fflush()
just after each fprintf(stderr).

The buffered stderr might be a bug of mingw, but redundant fflush()
does not make mischief for platforms that have correct stderr.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Attachment

pgsql-patches by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: Bitmapscan changes
Next
From: Tatsuo Ishii
Date:
Subject: Re: pgbench on mingw needs fflush