Re: Fixes a trivial bug in dumped parse/query/plan trees

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Chao Li <li.evan.chao@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-08-25T08:02:39Z
Lists: pgsql-hackers
> On 25 Aug 2025, at 02:54, Chao Li <li.evan.chao@gmail.com> wrote:
> 
> Hi Hackers,
> This patch fixes a trivial bug where an extra whitespace was added
> when dumping an array, for example:
> 
> ```
>   :sort.numCols 2
>   :sort.sortColIdx ( 1 4)
>   :sort.sortOperators ( 97 1754)
>   :sort.collations ( 0 0)
>   :sort.nullsFirst ( false false)
> ```
> 
> The unnecessary whitespace is now removed.

What about external parsers written for this format which might now break?
(Judging by the commitlog I believe this format is intentional and not a bug.)

--
Daniel Gustafsson