Re: pgbench on mingw needs fflush

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pgbench on mingw needs fflush
Date: 2007-03-13 06:50:55
Message-ID: 20070313.155055.30738893.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-03-13 07:39:31 Re: guc patch: Make variables fall back to default values
Previous Message Tatsuo Ishii 2007-03-13 06:50:21 Re: pgbench on mingw needs fflush