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

From Bruce Momjian
Subject Re: [NOVICE] encoding problems
Date
Msg-id 200805071824.m47IO9D04017@momjian.us
Whole thread Raw
In response to Re: [NOVICE] encoding problems  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [NOVICE] encoding problems  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-patches
Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > Alvaro Herrera wrote:
>
> > > If you start counting every line from the start of the current column,
> > > it will align correctly regardless of the previous columns.
> >
> > At this stage you don't know the width of previous columns because you
> > don't know if a very wide value is coming in a later row, so there is no
> > way to output the width of the cell with a tab you are looking at now.
> >
> > Unless I am misunderstanding you.
>
> 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.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [NOVICE] encoding problems
Next
From: Alvaro Herrera
Date:
Subject: Re: [NOVICE] encoding problems