Re: pg_upgrade: Error out on too many command-line arguments - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: pg_upgrade: Error out on too many command-line arguments
Date
Msg-id alpine.DEB.2.21.1908300905100.28828@lancre
Whole thread Raw
In response to Re: pg_upgrade: Error out on too many command-line arguments  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Bonjour Michaël,

> I don't see why not.  Perhaps this could be done for pgbench and
> oid2name as well?

This is for pgbench.

I did not found a TAP test in pg_upgrade, I do not think that it is worth 
creating one for that purpose. The "test.sh" script does not seem 
appropriate for this kind of coverage error test.

The TAP test for oid2name only includes basic checks, options and 
arguments are not even tested, and there is no infra for actual testing, 
eg starting a server… Improving that would be a much more significant 
effort that the one line I added to pgbench existing TAP test.

-- 
Fabien.

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_upgrade: Error out on too many command-line arguments
Next
From: Michael Paquier
Date:
Subject: Re: refactoring - share str2*int64 functions