Re: getting carriage return character in vacuumo

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Muhammad Usama <m(dot)usama(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: getting carriage return character in vacuumo
Date: 2011-04-09 14:54:51
Message-ID: 20110409145451.GA26437@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Apr 08, 2011 at 02:10:56PM -0400, Tom Lane wrote:
> Muhammad Usama <m(dot)usama(at)gmail(dot)com> writes:
> > While using the vacuumlo utility I encountered a redundant carriage
> > return(\r') character in the output. It is required in any scenario? If not,
> > please find attached a tiny patch which will get rid of that extra '\r'
> > character.
>
> I think the idea there is to overwrite successive progress messages
> on the same line. It's maybe not going to work in all environments,
> though, so perhaps we should reconsider that bit of cuteness.

One could hinge it on batch or non-batch mode, the default being
determined by whether it's running in a terminal or not.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patriotism is when love of your own people comes first; nationalism,
> when hate for people other than your own comes first.
> - Charles de Gaulle

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2011-04-09 16:17:10 Re: Evaluation of secondary sort key.
Previous Message Jesper Krogh 2011-04-09 13:22:14 Evaluation of secondary sort key.