pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pg_upgrade: Error out on too many command-line arguments
Date: Fri, 30 Aug 2019 16:40:11 +0200 (CEST)
Message-ID: <alpine.DEB.2.21.1908301622100.28828@lancre> (raw)
In-Reply-To: <15110.1567173253@sss.pgh.pa.us>
References: <f2554627-04e7-383a-ef01-ab99bb6a291c@2ndquadrant.com>
	<12750.1566743399@sss.pgh.pa.us>
	<CAOBaU_a5kYkR5gV7nCwjY_ZxahzM95=XACSLwg3gd7L59K3JAA@mail.gmail.com>
	<20190826044317.GC7005@paquier.xyz>
	<CALtqXTfTqTsrG4s4rHbHFE9bMwpgX7QWsDuD-hG1yX3BcJD_8Q@mail.gmail.com>
	<2a70fc23-3545-d22d-2071-a42ee18757c9@2ndquadrant.com>
	<alpine.DEB.2.21.1908300842470.28828@lancre>
	<15110.1567173253@sss.pgh.pa.us>


Hello Tom,

>> Could we maintain coverage by adding a TAP test? See 1 liner attached.
>
> 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.

> Test cycles are not free, and I see zero reason to think that a
> check of this sort would ever catch any bugs.  Now, if you had a
> way to detect that somebody had forgotten the case in some new
> program, that would be interesting.

It could get broken somehow, and the test would catch it?

That would be the only command which tests this feature?

This is a TAP test, not a test run on basic "make check". The cost is not 
measurable: pgbench 533 TAP tests run in 5 wallclock seconds, and this 
added test does not change that much.

Now, if you say you are against it, then it is rejected…

-- 
Fabien.

view thread (15+ messages)  latest in thread

Message-ID: <alpine.DEB.2.21.1908301622100.28828@lancre>
Permalink:  ../alpine.DEB.2.21.1908301622100.28828@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.21.1908301622100.28828@lancre

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, ibrar.ahmad@gmail.com, michael@paquier.xyz, rjuju123@gmail.com
  Subject: Re: pg_upgrade: Error out on too many command-line arguments
  In-Reply-To: <alpine.DEB.2.21.1908301622100.28828@lancre>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox