Proposal: new border setting in psql - Mailing list pgsql-hackers

From D'Arcy J.M. Cain
Subject Proposal: new border setting in psql
Date
Msg-id 20080821115719.d0b83a7d.darcy@druid.net
Whole thread Raw
Responses Re: Proposal: new border setting in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Here is a simple select output.

darcy=# select title_id, title_name from title;title_id | title_name 
----------+------------       2 | Mrs       3 | Ms       4 | Miss
(3 rows)

Now I change the border.

darcy=# \pset border 2
Border style is 2.
darcy=# select title_id, title_name from title;
+----------+------------+
| title_id | title_name |
+----------+------------+
|        2 | Mrs        |
|        3 | Ms         |
|        4 | Miss       |
+----------+------------+
(3 rows)

I would like to propose a new border setting.

darcy=# \pset border 3
Border style is 3.
darcy=# select title_id, title_name from title;
+----------+------------+
| title_id | title_name |
+==========+============+
|        2 | Mrs        |
+----------+------------+
|        3 | Ms         |
+----------+------------+
|        4 | Miss       |
+----------+------------+
(3 rows)

The reason for this is to allow the output to be fed directly into any
system using Restructured text as described in
http://docutils.sourceforge.net/docs/user/rst/quickref.html.

If there is any interest I will submit patches for code and
documentation.

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: A smaller default postgresql.conf
Next
From: Peter Eisentraut
Date:
Subject: Re: [pgsql-www] [FINALLY] the TODO list has migrated to Wiki