Re: Improve pgindent's formatting named fields in struct literals and varidic functions

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve pgindent's formatting named fields in struct literals and varidic functions
Date: 2026-03-31 08:03:59
Message-ID: 4a9b8b33-1107-4508-81a7-78125ae03c6b@proxel.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/31/26 9:16 AM, Jelte Fennema-Nio wrote:
> On Tue, 31 Mar 2026 at 08:30, Andreas Karlsson <andreas(at)proxel(dot)se> wrote:
>> Rebased it again.
>
> I agree this looks better. So seems like a reasonable improvement.

Thanks for taking a look!

But noticed now that the tests were broken so here is a new version
where they pass and where I also added a new test case for struct
literals with named fields.

Andreas

Attachment Content-Type Size
v4-0001-Make-pgindent-add-a-space-between-comma-and-perio.patch text/x-patch 1.9 KB
v4-0002-Run-pgindent-add-a-space-between-comma-and-period.patch text/x-patch 68.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-03-31 08:31:37 Re: Improve pgindent's formatting named fields in struct literals and varidic functions
Previous Message Chao Li 2026-03-31 07:53:46 Re: Bug: wrong relname in RemoveSubscriptionRel() error detail