Re: [NOVICE] encoding problems

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Cliff Nieuwenhuis <cliff(at)nieusite(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [NOVICE] encoding problems
Date: 2008-05-07 18:15:14
Message-ID: 20080507181514.GH20150@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice pgsql-patches

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.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2008-05-07 18:19:56 Re: [0/4] Proposal of SE-PostgreSQL patches
Previous Message Dimitri Fontaine 2008-05-07 17:54:11 Re: alter + preserving dependencies

Browse pgsql-novice by date

  From Date Subject
Next Message Bruce Momjian 2008-05-07 18:24:09 Re: [NOVICE] encoding problems
Previous Message Greg Cocks 2008-05-07 17:48:02 Re: Disadvantages to using "text"

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2008-05-07 18:19:56 Re: [0/4] Proposal of SE-PostgreSQL patches
Previous Message Bruce Momjian 2008-05-07 17:46:11 Re: [NOVICE] encoding problems