From 428ce0a45e5e0d8b340be4f2cab0a05da13aff17 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 31 Jul 2003 04:23:40 +0000 Subject: [PATCH] Add fflush of stdout when outputing query. --- doc/TODO | 2 +- src/bin/psql/common.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/TODO b/doc/TODO index dc06a38ffc..c903c6af87 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,6 +1,6 @@ TODO list for PostgreSQL ======================== -Last updated: Wed Jul 30 16:23:29 EDT 2003 +Last updated: Thu Jul 31 00:20:01 EDT 2003 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 145420831a..1694e8553c 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -595,8 +595,11 @@ SendQuery(const char *query) return false; } else if (VariableEquals(pset.vars, "ECHO", "queries")) + { puts(query); - + fflush(stdout); + } + SetCancelConn(); if (PQtransactionStatus(pset.db) == PQTRANS_IDLE && -- 2.39.5