Re: Unicode UTF-8 table formatting for psql text output - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Unicode UTF-8 table formatting for psql text output
Date
Msg-id 20090826023250.GS12604@alvh.no-ip.org
Whole thread Raw
In response to Re: Unicode UTF-8 table formatting for psql text output  (Roger Leigh <rleigh@codelibre.net>)
Responses Re: Unicode UTF-8 table formatting for psql text output  (Roger Leigh <rleigh@codelibre.net>)
List 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
nombreno 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


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: TODO item: Allow more complex user/database default GUC settings
Next
From: KaiGai Kohei
Date:
Subject: Difficulty in partial writable TOAST value