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 17:37:02
Message-ID: 20080507173702.GF20150@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice pgsql-patches

Bruce Momjian wrote:

> Even if we knew the column position at output time, when we are doing
> aligned column width computations, we don't know the width of the
> previous columns so we would have no way to know how far the tab would
> extend in the current column.

If you start counting every line from the start of the current column,
it will align correctly regardless of the previous columns.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2008-05-07 17:37:51 Re: pgsql: Make the pg_stat_activity view call a SRF
Previous Message Bruce Momjian 2008-05-07 17:26:52 Commit fest going well

Browse pgsql-novice by date

  From Date Subject
Next Message Bruce Momjian 2008-05-07 17:46:11 Re: [NOVICE] encoding problems
Previous Message Bruce Momjian 2008-05-07 17:20:05 Re: [NOVICE] encoding problems

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2008-05-07 17:46:11 Re: [NOVICE] encoding problems
Previous Message Bruce Momjian 2008-05-07 17:20:05 Re: [NOVICE] encoding problems