| From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Subject: | pgbench on mingw needs fflush |
| Date: | 2007-03-13 06:00:16 |
| Message-ID: | 20070313143526.6096.ITAGAKI.TAKAHIRO@oss.ntt.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| pgbench.fflush.diff | application/octet-stream | 2.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2007-03-13 06:50:21 | Re: pgbench on mingw needs fflush |
| Previous Message | Gavin Sherry | 2007-03-13 01:26:15 | Re: Bitmapscan changes |