pgcli
pgcli copied to clipboard
Right align numbers
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 |
+--------------------+
👍 Yes, please.
Right-alignment of numbers is default behavior of psql and is much more readable.