Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9527e9 commit b082ef7Copy full SHA for b082ef7
contrib/pgbench/pgbench.c
@@ -1,5 +1,5 @@
1
/*
2
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.61 2007/01/22 02:17:30 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.62 2007/03/13 09:06:35 mha Exp $
3
*
4
* pgbench: a simple benchmark program for PostgreSQL
5
* written by Tatsuo Ishii
@@ -1184,6 +1184,11 @@ main(int argc, char **argv)
1184
1185
char val[64];
1186
1187
+#ifdef WIN32
1188
+ /* stderr is buffered on Win32. */
1189
+ setvbuf(stderr, NULL, _IONBF, 0);
1190
+#endif
1191
+
1192
if ((env = getenv("PGHOST")) != NULL && *env != '\0')
1193
pghost = env;
1194
if ((env = getenv("PGPORT")) != NULL && *env != '\0')
0 commit comments