Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb082ef7

Browse files
committed
Set stderr to unbuffered for pgbench on win32.
ITAGAKI Takahiro
1 parentb9527e9 commitb082ef7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎contrib/pgbench/pgbench.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.61 2007/01/22 02:17:30 tgl Exp $
2+
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.62 2007/03/13 09:06:35 mha Exp $
33
*
44
* pgbench: a simple benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -1184,6 +1184,11 @@ main(int argc, char **argv)
11841184

11851185
charval[64];
11861186

1187+
#ifdefWIN32
1188+
/* stderr is buffered on Win32. */
1189+
setvbuf(stderr,NULL,_IONBF,0);
1190+
#endif
1191+
11871192
if ((env=getenv("PGHOST"))!=NULL&&*env!='\0')
11881193
pghost=env;
11891194
if ((env=getenv("PGPORT"))!=NULL&&*env!='\0')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp