From: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_createsubscriber TAP test wrapping makes command options hard to read. |
Date: | 2025-01-20 21:10:07 |
Message-ID: | 87ldv542fk.fsf@wibble.ilmari.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Peter,
Peter Smith <smithpb2250(at)gmail(dot)com> writes:
> On Fri, Dec 13, 2024 at 5:03 AM Dagfinn Ilmari Mannsåker
> <ilmari(at)ilmari(dot)org> wrote:
>>
>> On Thu, 12 Dec 2024, at 17:52, Andrew Dunstan wrote:
>> > On 2024-12-12 Th 12:08 PM, Dagfinn Ilmari Mannsåker wrote:
>> >>
>> >> command_ok(
>> >> [
>> >> 'pg_dump',
>> >> ('--schema', 'pg_catalog'),
>> >> ('-f', $outputdir . '/catalogs_primary.dump'),
>> >> '--no-sync',
>> >> ('-p', $node_primary->port),
>> >> '--no-unlogged-table-data',
>> >> 'regression'
>> >> ],
>> >> 'dump catalogs of primary server');
>> >>
>> >> I think the fat comma is much nicer than this, so I'd like to convert
>> >> these too (and replace some of the concatenations with interpolation).
>> >>
>> >> Technically the quotes aren't necessary around single-dash options
>> >> before => since unary minus works on strings as well as numbers, but
>> >> I'll leave them in for consistency.
>> >
>> > I'd rather get rid of those and just use the long options.
>>
>> Yeah, that is more self-documenting, so I'll do that while I'm at it.
>>
>
> Hi. This thread has been silent for 1 month. Just wondering, has any
> progress been made on these changes?
I did most of the work shortly after the above post, but then I got
distracted by Christmas holidays and kind of forgot about it when I got
back.
Here's a pair of patches. The first one is just running perltidy on the
current tree so we have a clean slate to see the changes induced by the
fat comma and long option changes.
- ilmari
Attachment | Content-Type | Size |
---|---|---|
v5-0001-Run-perltidy.patch | text/x-diff | 15.3 KB |
v5-0002-TAP-tests-fix-command-line-argument-wrapping.patch | text/x-diff | 224.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-01-20 21:16:35 | Re: [PATCH] Add roman support for to_number function |
Previous Message | Dagfinn Ilmari Mannsåker | 2025-01-20 20:42:45 | Re: pg_createsubscriber TAP test wrapping makes command options hard to read. |