Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euWLB-0008BR-9w for pgsql-www@arkaria.postgresql.org; Sat, 10 Mar 2018 04:42:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euWLA-0007p9-0f for pgsql-www@arkaria.postgresql.org; Sat, 10 Mar 2018 04:42:40 +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.89) (envelope-from ) id 1euWL9-0007p0-Rt for pgsql-www@lists.postgresql.org; Sat, 10 Mar 2018 04:42:39 +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.89) (envelope-from ) id 1euWL6-0001TK-KU for pgsql-www@lists.postgresql.org; Sat, 10 Mar 2018 04:42:39 +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 w2A4gXOj015759; Fri, 9 Mar 2018 23:42:33 -0500 From: Tom Lane To: Andres Freund cc: pgsql-www@lists.postgresql.org Subject: Re: Bogus reports from coverage.postgresql.org In-reply-to: <20180310040627.nwckurme2w42onp3@alap3.anarazel.de> References: <30022.1520642188@sss.pgh.pa.us> <20180310040627.nwckurme2w42onp3@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 09 Mar 2018 20:06:27 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15757.1520656953.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 09 Mar 2018 23:42:33 -0500 Message-ID: <15758.1520656953@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-03-09 19:36:28 -0500, Tom Lane wrote: >> I happened to notice that if you look at >> https://coverage.postgresql.org/src/backend/optimizer/util/predtest.c.g= cov.html >> it claims that the two occurrences of >> elog(ERROR, "predicate_classify returned a bogus value"); >> at lines 492 and 803 are reached. > Is it possible that the compiler figured that the patch is unreachable > and removed the code? Maybe, but then it's even less reasonable to claim that the lines were reached. In general, lcov seems to ignore lines for which no code was generated, which is fine by me. regards, tom lane