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 20:32:43 |
Message-ID: | 200805072032.m47KWh723442@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.
Alvaro, using spaces instead of the terminal hard tabs was a very good
idea. The output is now:
test=> \x
Expanded display is on.
test=> \df+ xx
List of functions
-[ RECORD 1 ]-------+--------------------
Schema | public
Name | xx
Result data type | text
Argument data types |
Volatility | volatile
Owner | postgres
Language | sql
Source code | SELECT 'a'::text
: WHERE 1 = 1
Description |
Patch attached. It substitutes spaces for the tab.
--
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. +
Attachment | Content-Type | Size |
---|---|---|
/pgpatches/psql_tab | text/x-diff | 657 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2008-05-07 20:41:56 | Re: [pgsql-www] [ADMIN] 8.2.4 patches? (fwd) |
Previous Message | Bruce Momjian | 2008-05-07 20:22:14 | Re: Posting to hackers and patches lists |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Hyatt | 2008-05-08 01:40:52 | Re: Disadvantages to using "text" |
Previous Message | Aurynn Shaw | 2008-05-07 19:19:47 | Re: Disadvantages to using "text" |
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2008-05-07 21:10:00 | Re: Posting to hackers and patches lists |
Previous Message | Bruce Momjian | 2008-05-07 20:22:14 | Re: Posting to hackers and patches lists |