Skip to content

Commit f766b37

Browse files
committed
Add fflush of stdout when outputing query.
1 parent 82bade7 commit f766b37

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/TODO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TODO list for PostgreSQL
22
========================
3-
Last updated: Wed Jul 30 16:23:29 EDT 2003
3+
Last updated: Thu Jul 31 00:20:01 EDT 2003
44

55
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
66

@@ -474,7 +474,7 @@ Source Code
474474
* Acquire lock on a relation before building a relcache entry for it
475475
* Research interaction of setitimer() and sleep() used by statement_timeout
476476
* Add checks for fclose() failure
477-
* Change CVS $Id: TODO,v 1.1100 2003/07/30 20:23:32 momjian Exp $ to $PostgreSQL: pgsql/doc/TODO,v 1.1100 2003/07/30 20:23:32 momjian Exp $
477+
* Change CVS $Id: TODO,v 1.1101 2003/07/31 04:23:40 momjian Exp $ to $PostgreSQL: pgsql/doc/TODO,v 1.1101 2003/07/31 04:23:40 momjian Exp $
478478
* Exit postmaster if postgresql.conf can not be opened
479479
* Rename /scripts directory because they are all C programs now
480480
* Allow the regression tests to start postmaster with -i so the tests

src/bin/psql/common.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.66 2003/07/23 08:47:39 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.67 2003/07/31 04:23:40 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -595,8 +595,11 @@ SendQuery(const char *query)
595595
return false;
596596
}
597597
else if (VariableEquals(pset.vars, "ECHO", "queries"))
598+
{
598599
puts(query);
599-
600+
fflush(stdout);
601+
}
602+
600603
SetCancelConn();
601604

602605
if (PQtransactionStatus(pset.db) == PQTRANS_IDLE &&

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy