|
3 | 3 | * |
4 | 4 | * Copyright (c) 2000-2006, PostgreSQL Global Development Group |
5 | 5 | * |
6 | | - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.175 2006/12/16 00:38:43 adunstan Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.176 2006/12/28 00:29:13 tgl Exp $ |
7 | 7 | */ |
8 | 8 | #include"postgres_fe.h" |
9 | 9 | #include"command.h" |
@@ -60,8 +60,8 @@ static bool do_shell(const char *command); |
60 | 60 | /*---------- |
61 | 61 | * HandleSlashCmds: |
62 | 62 | * |
63 | | - * Handles all the different commands that start with '\', |
64 | | - *ordinarily called by MainLoop(). |
| 63 | + * Handles all the different commands that start with '\'. |
| 64 | + *Ordinarily called by MainLoop(). |
65 | 65 | * |
66 | 66 | * scan_state is a lexer working state that is set to continue scanning |
67 | 67 | * just after the '\'. The lexer is advanced past the command and all |
@@ -148,6 +148,9 @@ HandleSlashCmds(PsqlScanState scan_state, |
148 | 148 |
|
149 | 149 | free(cmd); |
150 | 150 |
|
| 151 | +/* some commands write to queryFout, so make sure output is sent */ |
| 152 | +fflush(pset.queryFout); |
| 153 | + |
151 | 154 | returnstatus; |
152 | 155 | } |
153 | 156 |
|
|