Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv6mG-0005Zb-VA for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 18:00:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bv6mG-0002iP-Hv for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 18:00:16 +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 1bv6mG-0002iA-33 for pgsql-hackers@postgresql.org; Fri, 14 Oct 2016 18:00:16 +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 1bv6m9-0003Rt-NM for pgsql-hackers@postgresql.org; Fri, 14 Oct 2016 18:00:15 +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 u9EI05SB013053; Fri, 14 Oct 2016 14:00:05 -0400 From: Tom Lane To: Robert Haas cc: Peter Eisentraut , Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Extend framework from commit 53be0b1ad to report latch waits. In-reply-to: References: <6497.1475593948@sss.pgh.pa.us> <7244.1475594991@sss.pgh.pa.us> <3834df91-9cfe-05f6-d7d5-faa2ab772424@2ndquadrant.com> <20161012233838.ijc5whv4f5u72zq7@alap3.anarazel.de> <88f0f789-2281-a228-8327-4c271d96b4e9@2ndquadrant.com> <4590.1476459232@sss.pgh.pa.us> <6796.1476461414@sss.pgh.pa.us> <9212.1476463427@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 14 Oct 2016 10:49:08 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13051.1476468005.1@sss.pgh.pa.us> Date: Fri, 14 Oct 2016 14:00:05 -0400 Message-ID: <13052.1476468005@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) 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 Robert Haas writes: > On Fri, Oct 14, 2016 at 9:43 AM, Tom Lane wrote: >> TBH, I can't muster much sympathy for that position. Make a test case >> for it, and the problem goes away, not to mention that confidence in >> whether it actually works (not just compiles) goes up a lot. > I'm not sure there's an easy way to test it via pg_regress, but if > somebody can come up with something, sure. But why stick to a rule > that is inconvenient for no real benefit? Compiling everything in > src/test/modules when someone runs 'make check-world' would take a > handful of seconds and prevent developer errors like the one that > started this thread. That seems like a slam-dunk from here, > regardless of anything else. I guess what I'm having a problem with is something that lives under src/test/ and is not in fact intended as a test. If you're not interested in making it into a live test, it's in the wrong place. You might as well complain that you put C code under doc/src/sgml/ and it didn't get compiled. One idea is to put "check: all" into its makefile, if there's no prospect of check doing something more than 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