Re: pg_createsubscriber TAP test wrapping makes command options hard to read. - Mailing list pgsql-hackers

From Dagfinn Ilmari Mannsåker
Subject Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
Date
Msg-id 105f432a-6b0b-42d4-9061-65d263279be7@app.fastmail.com
Whole thread Raw
In response to Re: pg_createsubscriber TAP test wrapping makes command options hard to read.  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
List pgsql-hackers
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.

--
- ilmari



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
Next
From: Masahiko Sawada
Date:
Subject: Re: UUID v7