Re: Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)

From: "Michael Paesold" <mpaesold(at)gmx(dot)at>
To: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>, "Marko Kreen" <markokr(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)
Date: 2006-02-10 19:55:42
Message-ID: 00ec01c62e7b$f994ee20$67dc8380@zaphod
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Martijn van Oosterhout wrote:

> On Fri, Feb 10, 2006 at 08:06:53PM +0100, Michael Paesold wrote:
> > A side affect of this newline patch is that all fields are now filled
> > with
> > white space up to the displayed column width, even for the last (or only
> > column).
>
> My intention was to only change formatted output. Unformatted should be
> unchanged from previous.
>
> The extra spaces is an interesting side-effect. In the past it would
> only have worked for the last column anyway, right?

Right, my explanation was not correct. It should have been "the last column
is now also filled with spaces". Of course all but the last column were
always filled with spaces.

> Anyway, it is a fixable issue and I'd consider doing it if people think
> it's worth it.

I personally don't like the added spaces (feels inefficient), but that is
only a matter of taste, so you can rather ignore it.
I am not sure about people who perhaps rely on the output format in scripts
(even if it's bad to rely on that specific output format, because the output
of psql can be changed to be more suitable for scripts). For multi-column
output things have not really changed anyway.

Best Regards,
Michael Paesold

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message ohp 2006-02-10 20:09:39 Re: how is that possible
Previous Message Martijn van Oosterhout 2006-02-10 19:32:40 Re: Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-02-10 20:21:47 Re: Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)
Previous Message Martijn van Oosterhout 2006-02-10 19:32:40 Re: Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)