Re: [NOVICE] encoding problems - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: [NOVICE] encoding problems
Date
Msg-id 20080507184429.GK20150@alvh.no-ip.org
Whole thread Raw
In response to Re: [NOVICE] encoding problems  (Bruce Momjian <bruce@momjian.us>)
Responses Re: [NOVICE] encoding problems  (Bruce Momjian <bruce@momjian.us>)
Re: [NOVICE] encoding problems  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Bruce Momjian wrote:
> Alvaro Herrera wrote:

> > Surely psql computes the width of all cells before printing anything.
>
> It does, but if you have a value that has a tab, how do you know what
> tab stop you are on because you don't know the final width of the
> previous columns at that time, so there is no way to know the width of
> that cell.

My point is that you don't need to align the tabstops with the start of
the line, but with the start of the _column_.  So the width of the
previous column doesn't matter.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [NOVICE] encoding problems
Next
From: Bruce Momjian
Date:
Subject: Re: [NOVICE] encoding problems