Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf766b37

Browse files
committed
Add fflush of stdout when outputing query.
1 parent82bade7 commitf766b37

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 Jul30 16:23:29 EDT 2003
3+
Last updated:Thu Jul31 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
elseif (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)

[8]ページ先頭

©2009-2025 Movatter.jp