From: | Bryce Nesbitt <bryce2(at)obviously(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | [SQL] Proposed patch - psql wraps at window width |
Date: | 2008-03-05 07:42:04 |
Message-ID: | 47CE4ECC.3020106@obviously.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I've got a patch to psql that offers a "no wider than terminal" option,
patched against cvs head. Would anyone be willing to test this before I
submit the patch?
# \pset format aligned-wrapped
# \pset border 2
# select * from distributors order by did;
Word wrap debug: rows=11 terminal=66 total_w=108
Max= 8 18 56 13
Avg= 2 11 17 0
+-----+-------------------+----------------------+---------------+
| did | name | descr | long_col_name |
+-----+-------------------+----------------------+---------------+
| 5 | Food Heaven | default | |
| 10 | Lah | default | |
| 3 | Cat Food Heaven 3 | default | |
| 4 | Cat Food Heaven 4 | default | |
| 2 | Cat Food Heaven 2 | abcdefghijklmnopqrst : |
| | | uvwxyz | |
| 289 : short name | short | |
| 287 : | | |
| 32 | | | |
| 99 | Tab \x09 tab | -- | |
| 6 | multiwrap | line oneeeeeeeeeeeee : |
| | | eeeeeeeeeeeee | |
| | | line two | |
| | | line threeeeeeeeeeee : |
| | | eeeeeeeeeeeeeeeeeeee : |
| | | eeeeeeeeeeeeeeee | |
+-----+-------------------+----------------------+---------------+
(9 rows)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2008-03-05 09:49:30 | Re: [SQL] Proposed patch - psql wraps at window width |
Previous Message | Bruce Momjian | 2008-03-05 03:44:07 | Re: "could not open relation 1663/16384/16584: No such file or directory" in a specific combination of transactions with temp tables |