aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/createuser.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-01-01 19:27:15 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-01-01 19:27:15 +0000
commitb3c3b5464d762efdf30cb9f2beb71e2d9e246011 (patch)
treea44fa8c725d2d2cf5fbe1fe75108ad2d507cc8cf /src/bin/scripts/createuser.c
parent8042c79fd169725774a6d34eda30e94b2246236e (diff)
downloadpostgresql-b3c3b5464d762efdf30cb9f2beb71e2d9e246011.tar.gz
postgresql-b3c3b5464d762efdf30cb9f2beb71e2d9e246011.zip
Do an explicit fflush after writing a progress message with puts.
This ensures stdout is kept in sync with messages on stderr. Per report from Olaf Ferger.
Diffstat (limited to 'src/bin/scripts/createuser.c')
-rw-r--r--src/bin/scripts/createuser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c
index 2a68b6b438e..021decf4bdb 100644
--- a/src/bin/scripts/createuser.c
+++ b/src/bin/scripts/createuser.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.7 2003/11/29 19:52:07 pgsql Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.8 2004/01/01 19:27:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -224,7 +224,10 @@ main(int argc, char *argv[])
PQfinish(conn);
if (!quiet)
+ {
puts("CREATE USER");
+ fflush(stdout);
+ }
exit(0);
}