Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3b6v-0005Cu-N5 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Aug 2019 07:14:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3b6t-0004qc-34 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Aug 2019 07:14:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3b6s-0004kk-Nh for pgsql-hackers@lists.postgresql.org; Fri, 30 Aug 2019 07:14:14 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i3b6p-000551-LC for pgsql-hackers@postgresql.org; Fri, 30 Aug 2019 07:14:13 +0000 Received: from smtp-4.mines-paristech.fr (smtp-4.ensmp.fr [77.158.173.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id 57FFB55F3F; Fri, 30 Aug 2019 09:14:09 +0200 (CEST) Received: from lancre (184.86.8.93.rev.sfr.net [93.8.86.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-4.mines-paristech.fr (Postfix) with ESMTPSA id 923072C024B; Fri, 30 Aug 2019 09:14:08 +0200 (CEST) Date: Fri, 30 Aug 2019 09:14:07 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: Michael Paquier cc: Peter Eisentraut , Ibrar Ahmed , Julien Rouhaud , Tom Lane , pgsql-hackers Subject: Re: pg_upgrade: Error out on too many command-line arguments In-Reply-To: <20190830065905.GA2354@paquier.xyz> Message-ID: References: <12750.1566743399@sss.pgh.pa.us> <20190826044317.GC7005@paquier.xyz> <2a70fc23-3545-d22d-2071-a42ee18757c9@2ndquadrant.com> <20190830065905.GA2354@paquier.xyz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-735296571-1567149249=:28828" X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudeifedgudduhecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffujgfkfhgfgggtsehmtderredtreejnecuhfhrohhmpefhrggsihgvnhcuvefqgffnjffquceotghovghlhhhosegtrhhirdgvnhhsmhhprdhfrheqnecukfhppeelfedrkedrkeeirddukeegnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-735296571-1567149249=:28828 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT 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. --8323329-735296571-1567149249=:28828--