summaryrefslogtreecommitdiff
path: root/src/bin/scripts/dropuser.c
diff options
context:
space:
mode:
authorTom Lane2004-01-01 19:27:15 +0000
committerTom Lane2004-01-01 19:27:15 +0000
commitb3c3b5464d762efdf30cb9f2beb71e2d9e246011 (patch)
treea44fa8c725d2d2cf5fbe1fe75108ad2d507cc8cf /src/bin/scripts/dropuser.c
parent8042c79fd169725774a6d34eda30e94b2246236e (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/dropuser.c')
-rw-r--r--src/bin/scripts/dropuser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/scripts/dropuser.c b/src/bin/scripts/dropuser.c
index b5b5439f8a2..b0dc5a7d7c3 100644
--- a/src/bin/scripts/dropuser.c
+++ b/src/bin/scripts/dropuser.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/dropuser.c,v 1.6 2003/11/29 19:52:07 pgsql Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.7 2004/01/01 19:27:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -131,7 +131,10 @@ main(int argc, char *argv[])
PQfinish(conn);
if (!quiet)
+ {
puts("DROP USER");
+ fflush(stdout);
+ }
exit(0);
}