Set std error to no buffering on Win32.
This commit is contained in:
parent
deb78dd833
commit
3363b847ec
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.91 2004/04/22 14:34:38 momjian Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.92 2004/05/02 04:25:45 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
|
@ -124,6 +124,9 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
setvbuf(stderr,NULL,_IONBF,0);
|
||||||
|
#endif
|
||||||
pset.cur_cmd_source = stdin;
|
pset.cur_cmd_source = stdin;
|
||||||
pset.cur_cmd_interactive = false;
|
pset.cur_cmd_interactive = false;
|
||||||
pset.encoding = PQenv2encoding();
|
pset.encoding = PQenv2encoding();
|
||||||
|
|
Loading…
Reference in New Issue