Re: How would I get rid of trailing blank line?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How would I get rid of trailing blank line?
Дата
Msg-id 14638.1238713281@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How would I get rid of trailing blank line?  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
Список pgsql-sql
"Tena Sakai" <tsakai@gallo.ucsf.edu> writes:
> I often use a line like:
>   psql -tf query.sql mydatabase > query.out

> -t option gets rid of the heading and count
> report at the bottom.  There is a blank line
> at the bottom, however.  Is there any way to
> have psql not give me that blank line?

Doesn't look like it --- the final fputc('\n', fout); seems to be
done unconditionally in all the output formats.  I wonder if we should
change that?  I'm afraid it might break programs that are used to it :-(
        regards, tom lane


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: FUNCTION problem
Следующее
От: Peter Willis
Дата:
Сообщение: Re: FUNCTION problem