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 1i3iC0-0002Vx-EJ for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Aug 2019 14:48:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3iBz-0007RR-9r for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Aug 2019 14:47:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3iBz-0007RJ-1E for pgsql-hackers@lists.postgresql.org; Fri, 30 Aug 2019 14:47:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3iBw-0000gA-EI for pgsql-hackers@postgresql.org; Fri, 30 Aug 2019 14:47:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7UElmTO024928; Fri, 30 Aug 2019 10:47:48 -0400 From: Tom Lane To: Fabien COELHO cc: Peter Eisentraut , Ibrar Ahmed , Michael Paquier , Julien Rouhaud , pgsql-hackers Subject: Re: pg_upgrade: Error out on too many command-line arguments In-reply-to: References: <12750.1566743399@sss.pgh.pa.us> <20190826044317.GC7005@paquier.xyz> <2a70fc23-3545-d22d-2071-a42ee18757c9@2ndquadrant.com> <15110.1567173253@sss.pgh.pa.us> Comments: In-reply-to Fabien COELHO message dated "Fri, 30 Aug 2019 16:40:11 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24926.1567176468.1@sss.pgh.pa.us> Date: Fri, 30 Aug 2019 10:47:48 -0400 Message-ID: <24927.1567176468@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fabien COELHO writes: >> Is this issue *really* worth expending test cycles on forevermore? > With this argument consistently applied, postgres code coverage is > consistently weak, with 25% of the code never executed, and 15% of > functions never called. "psql" is abysmal, "libpq" is really weak. It's all a question of balance. If you go too far in the other direction, you end up with test suites that take an hour and a half to run so nobody ever runs them (case in point, mysql). I'm all for improving coverage in meaningful ways --- but cases like this seem unlikely to be worth ongoing expenditures of testing effort. regards, tom lane