pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Right align numbers

Open Vlad-Shcherbina opened this issue 6 years ago • 1 comments

It is common practice to right align header and values in numeric columns, see for example https://ux.stackexchange.com/q/24066. Or more precisely, align to decimal point.

To reproduce:

SELECT name, salary FROM employees

Expected result:

+--------------------+
| name    |   salary |
|---------+----------+
| Alice   |      103 |
| Bob     |       42 |
+--------------------+

Actual result:

+--------------------+
| name    | salary   |
|---------+----------+
| Alice   | 103      |
| Bob     | 42       |
+--------------------+

Vlad-Shcherbina avatar Jun 28 '19 11:06 Vlad-Shcherbina

👍 Yes, please.

Right-alignment of numbers is default behavior of psql and is much more readable.

anthonydb avatar Jun 28 '19 13:06 anthonydb