Re: Unicode UTF-8 table formatting for psql text output

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Roger Leigh <rleigh(at)codelibre(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Roger Leigh <rleigh(at)debian(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unicode UTF-8 table formatting for psql text output
Date: 2009-08-26 02:32:50
Message-ID: 20090826023250.GS12604@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Roger Leigh escribió:

> An updated copy of the patch is attached.

I give it a try. It looks very reasonable. We could argue about the
exact chars to use but that can be changed later.

Did you give expanded output a look? (\x) I find it a bit weird that
the first line shows a single-pixel wide line but the subsequent ones
are thicker.

BTW I think you should also look at multiline fields,

a │ b
━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 │ some text
: and some more
: and then some
(1 filas)

And wrapped:

alvherre=# select * from foo;
a │ b
━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5 │ En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho
; tiempo que vivía un hidalgo
(1 fila)

--
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 KaiGai Kohei 2009-08-26 02:39:03 Difficulty in partial writable TOAST value
Previous Message Alvaro Herrera 2009-08-26 02:17:38 Re: TODO item: Allow more complex user/database default GUC settings