Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ap4WI-0007iB-SF for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 01:50:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ap4WH-00085L-4t for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 01:50:33 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ap4Uv-0006VG-Kx for pgsql-hackers@postgresql.org; Sun, 10 Apr 2016 01:49:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ap4Us-000309-FP for pgsql-hackers@postgresql.org; Sun, 10 Apr 2016 01:49:09 +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 u3A1n39d028004; Sat, 9 Apr 2016 21:49:03 -0400 From: Tom Lane To: Noah Misch cc: Teodor Sigaev , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Bloom index contrib module In-reply-to: <20160409234332.GA1747447@tornado.leadboat.com> References: <12656.1460217008@sss.pgh.pa.us> <20160409234332.GA1747447@tornado.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sat, 09 Apr 2016 19:43:32 -0400" Date: Sat, 09 Apr 2016 21:49:03 -0400 Message-ID: <28003.1460252943@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Noah Misch writes: > On Sat, Apr 09, 2016 at 11:50:08AM -0400, Tom Lane wrote: >> Would it be possible to dial down the amount of runtime consumed by >> the regression tests for this module? > I find this added test duration reasonable. If someone identifies a way to > realize similar coverage with lower duration, I'd value that contribution. -1 > for meeting some runtime target at the expense of coverage. Older modules > have rather little test coverage, so they're poor as benchmarks. That argument is fine in principle, but the thing about applications such as SQL databases is that shoving more rows through them doesn't in itself increase test coverage; it may just iterate the loops more times. The contrib/bloom regression test currently creates a 100000-row table. I wondered how many rows were really required to achieve the same level of code coverage. I experimented with gcov, and what I find is that as of HEAD that test provides these levels of coverage: Line Coverage Functions contrib/bloom/: 75.4 % 374 / 496 93.1 % 27 / 29 generic_xlog.c: 68.5 % 98 / 143 77.8 % 7 / 9 (I looked specifically at generic_xlog.c because the main point of this contrib module, so far as the core code is concerned, is to exercise that file.) I was depressed, though not entirely surprised, to find that you get exactly that same line-count coverage if the table size is cut back to ONE row. Only when you remove the INSERT command entirely is there any change in these gcov statistics. Therefore, the last 99999 rows are wasting my time, and yours, and that of every other developer who will ever run this test suite in future. I do not like having the community's time wasted. I'm all for improving our test coverage, but just shoving lots of rows through a not-very-well-designed-in-the-first-place regression test isn't a reliable way to do that. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers