Re: psql -e

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql -e
Date: 2003-07-24 13:53:38
Message-ID: 17838.1059054818@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Rajesh Kumar Mallah writes:
>> The echo feature of psql echos the query after its executed.
>> does it makes more sense to have the reverse.

> The query is printed *before* it is executed, but you might not see it
> because your terminal is not flushing the stdout at the right times.

It might be a good idea to do an explicit fflush(stdout) right after
printing the query. I observe that PSQLexec() does this, and SendQuery
does too in one path --- but not in the other.

regards, tom lane

In response to

  • Re: psql -e at 2003-07-24 10:04:35 from Peter Eisentraut

Responses

  • Re: psql -e at 2003-07-28 12:53:48 from Martijn van Oosterhout
  • Re: psql -e at 2003-07-31 04:23:58 from Bruce Momjian

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-07-24 14:00:53 Re: SAP DB: The unsung Open Source DB
Previous Message Ned Lilly 2003-07-24 13:05:40 Re: SAP DB: The unsung Open Source DB