Re: psql -e

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql -e
Дата
Msg-id 17838.1059054818@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql -e  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: psql -e  (Martijn van Oosterhout <kleptog@svana.org>)
Re: psql -e  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
Peter Eisentraut <peter_e@gmx.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SAP DB: The unsung Open Source DB
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: List last value of all sequences