summaryrefslogtreecommitdiff
path: root/src/bin/scripts/createdb.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-01-01 19:27:28 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-01-01 19:27:28 +0000
commit8265a1d8163656cbccc8c69b22c65138e30022c0 (patch)
treed44ef2b6947b114e79d1f7562948e2c288923ce5 /src/bin/scripts/createdb.c
parentf40aa225bd2faa5cbab4a3800d0e14f09c551683 (diff)
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/createdb.c')
-rw-r--r--src/bin/scripts/createdb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/scripts/createdb.c b/src/bin/scripts/createdb.c
index 1f7df9104d5..3fff43eeef7 100644
--- a/src/bin/scripts/createdb.c
+++ b/src/bin/scripts/createdb.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/bin/scripts/createdb.c,v 1.5 2003/08/04 00:43:29 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/scripts/createdb.c,v 1.5.4.1 2004/01/01 19:27:28 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -177,7 +177,10 @@ main(int argc, char *argv[])
PQfinish(conn);
if (!quiet)
+ {
puts("CREATE DATABASE");
+ fflush(stdout);
+ }
if (comment)
{
@@ -200,7 +203,10 @@ main(int argc, char *argv[])
PQfinish(conn);
if (!quiet)
+ {
puts("COMMENT");
+ fflush(stdout);
+ }
}
exit(0);