postgresql/src/fe_utils
Michael Paquier efd885d05b psql: Fix expanded aligned output
When a table's columns are narrower than the record header line, the
expanded aligned format produced misaligned output because the data
column width was not adjusted to match the record header width, leading
to output like:
+-[ RECORD 1 ]-+
| a | 10 |
| b | 20 |
+---+----+

This commit adjusts the output so as the column width match with the
header line, giving:
+-[ RECORD 1 ]-+
| a | 10       |
| b | 20       |
+---+----------+

Author: Pavel Stehule <pavel.stehule@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAFj8pRCzGpsr9zTHbtTd4mGh2YPJqOEgLgt8JLiopuYA9_1xGw@mail.gmail.com
Backpatch-through: 14
2026-06-08 14:37:57 +09:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
archive.c Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
cancel.c Centralize logic for restoring errno in signal handlers. 2024-02-14 16:34:18 -06:00
conditional.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
connect_utils.c dblink/isolationtester/fe_utils: Use new cancel API 2024-03-18 19:28:58 +01:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
mbprint.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
option_utils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
parallel_slot.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
print.c psql: Fix expanded aligned output 2026-06-08 14:37:57 +09:00
psqlscan.l Prevent mis-encoding of "trailing junk after numeric literal" errors. 2024-09-05 12:42:33 -04:00
query_utils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
recovery_gen.c Fix an assortment of typos 2024-05-04 02:33:25 +12:00
simple_list.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
string_utils.c In fmtIdEnc(), handle failure of enlargePQExpBuffer(). 2025-02-16 12:46:35 -05:00