Re: bugfix - fix broken output in expanded aligned format, when data are too short

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: getiancheng <getiancheng_2012@163.com>, Chao Li <li.evan.chao@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-08T01:36:29Z
Lists: pgsql-hackers
On Sun, Jun 07, 2026 at 10:39:21AM +0200, Pavel Stehule wrote:
> only rebase

The patch has been lying around for a couple of months, and as far as
I can see it looks incorrect in the way this calculates the column
width.  Short of some adjustments for the description of the test and
the comment you have changed, I'll double-check the whole.

Thanks for the report and the patch.
--
Michael

Commits

  1. psql: Fix expanded aligned output