From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
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:46:28 |
Message-ID: | 200805071846.m47IkSe18530@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-novice pgsql-patches |
Alvaro Herrera wrote:
> 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.
OK, so I am not really using tabs in the output, but outputting the
proper number of spaces to make it look like a tab? That works. Let me
try it.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2008-05-07 19:12:08 | Re: Posting to hackers and patches lists |
Previous Message | Alvaro Herrera | 2008-05-07 18:44:29 | Re: [NOVICE] encoding problems |
From | Date | Subject | |
---|---|---|---|
Next Message | Obe, Regina | 2008-05-07 19:15:08 | Re: Disadvantages to using "text" |
Previous Message | Alvaro Herrera | 2008-05-07 18:44:29 | Re: [NOVICE] encoding problems |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2008-05-07 18:48:11 | Re: Snapshot management, final |
Previous Message | Alvaro Herrera | 2008-05-07 18:44:29 | Re: [NOVICE] encoding problems |