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

Поиск
Список
Период
Сортировка
От Tena Sakai
Тема Re: How would I get rid of trailing blank line?
Дата
Msg-id FE44E0D7EAD2ED4BB2165071DB8E328C04E84A66@egcrc-ex01.egcrc.org
обсуждение исходный текст
Ответ на How would I get rid of trailing blank line?  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
Список pgsql-sql
<p><font size="2">Hi Tom,<br /><br /> I am a bit surprised to hear that that '\n'<br /> is there unconditionally.  But
Iam sure<br /> there are more pressing things for you to<br /> work on.  It's something I can live with.<br /><br />
Regards,<br/><br /> Tena Sakai<br /> tsakai@gallo.ucsf.edu<br /><br /><br /> -----Original Message-----<br /> From: Tom
Lane[<a href="mailto:tgl@sss.pgh.pa.us">mailto:tgl@sss.pgh.pa.us</a>]<br /> Sent: Thu 4/2/2009 4:01 PM<br /> To: Tena
Sakai<br/> Cc: pgsql-sql@postgresql.org; pgsql-hackers@postgresql.org<br /> Subject: Re: [SQL] How would I get rid of
trailingblank line?<br /><br /> "Tena Sakai" <tsakai@gallo.ucsf.edu> writes:<br /> > I often use a line
like:<br/> >   psql -tf query.sql mydatabase > query.out<br /><br /> > -t option gets rid of the heading and
count<br/> > report at the bottom.  There is a blank line<br /> > at the bottom, however.  Is there any way to<br
/>> have psql not give me that blank line?<br /><br /> Doesn't look like it --- the final fputc('\n', fout); seems
tobe<br /> done unconditionally in all the output formats.  I wonder if we should<br /> change that?  I'm afraid it
mightbreak programs that are used to it :-(<br /><br />                         regards, tom lane<br /><br /></font> 

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: FUNCTION problem
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: How would I get rid of trailing blank line?