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 1hJqWG-0003yi-SR for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Apr 2019 02:23:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJqWE-0000fp-5I for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Apr 2019 02:23:18 +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 1hJqWD-0000fi-Ps for pgsql-hackers@lists.postgresql.org; Fri, 26 Apr 2019 02:23:17 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJqWA-0000nd-Iz for pgsql-hackers@lists.postgresql.org; Fri, 26 Apr 2019 02:23:17 +0000 Received: by mail-qt1-x842.google.com with SMTP id j6so2538756qtq.1 for ; Thu, 25 Apr 2019 19:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Mw9s7UXx6GV9Eiwy0JDXb5hNopddLVW2+ZlbXr3nygo=; b=B/8x+EX7Yl04VLzMCEfZeMI4AFMa6zZpTuJL594rpHJVLvKR3GXBFbTLbrM+s9yYnl mGwMphpIeqFqGw3oZ+eB6OmRgq+ZXuRkuHidq4m/c+KQrApADnbUcngGlYLE/M6AuXxv 6GYaXP1/hwH43LNdPAbw2DOWTgiUnk/yVoy8rZb6sp3ns+X9SYkBPxw09tNCOudfQG1y wnWfpr3IQLQiWWVq34GnuzLFHGrU0NFpmaAz6el7CR4FgpWES65j8ASI2TwQJq4D3r7b nEHh4RBU1wOsLT1VButv+TKxpt/yCcIBvM/bThmPo2egexzGRWBG1rYTajJJ/Q6BO/fk XVUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Mw9s7UXx6GV9Eiwy0JDXb5hNopddLVW2+ZlbXr3nygo=; b=oL21Kmu79I7OLwtuOSAGSlwbFhjNSDUemkJPnyBmP47Nq7vBXB5+dDefGOAkaovvt8 BIkRg6iBH1a2Go5QyTwunRW3C3kAtvbwhvRTaX9tmMNNJkPzab44L6/R7DEmITwxJleD FafmS5s9bPJ+jPNkUJRxRDS5/ySjyBj32gcZZebYCmCbnYKLFq3/rtyroi4xwsC9LL5n VwyD8m3NxVVNNLRJP2yINzKA1LGGvZkgKU8yMYMhfY7J9RhX7FwUs4WpyvV1PKK0+5h6 cIwxiki8M5kpr4rhwwJG5bMkmoMrHvV4q0KMz81QSPhQVpCSzy1ZhAF2O8qOkdqj4+Mu gUNg== X-Gm-Message-State: APjAAAWfq/InGYJHbllCiMxyUDnSKBlC5dnO0hWcQj2N7vars1FRzeTu brKUQ72Q78jcyl5jyrYDayZ2iMwnt50= X-Google-Smtp-Source: APXvYqzBTGOZthWtgLfNPZeMM8rJE/Yhgw05MEowVlh+amwsDZovE38nDs8FCqG/iiomTVvfDXQh1w== X-Received: by 2002:ac8:8d4:: with SMTP id y20mr35707348qth.13.1556245392735; Thu, 25 Apr 2019 19:23:12 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.48.227]) by smtp.gmail.com with ESMTPSA id h189sm2829327qkc.89.2019.04.25.19.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 19:23:12 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C2D9A120423; Thu, 25 Apr 2019 22:23:09 -0400 (-04) Date: Thu, 25 Apr 2019 22:23:09 -0400 From: Alvaro Herrera To: Peter Geoghegan Cc: Tom Lane , PostgreSQL Hackers Subject: Re: Reducing the runtime of the core regression tests Message-ID: <20190426022309.GA11555@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-25, Peter Geoghegan wrote: > On Fri, Apr 12, 2019 at 10:24 AM Alvaro Herrera > wrote: > > Hmm, it's odd, because > > https://coverage.postgresql.org/src/backend/access/nbtree/nbtutils.c.gcov.html > > still shows that function doing that. pg_config shows: > > > > $ ./pg_config --configure > > '--enable-depend' '--enable-coverage' '--enable-tap-tests' '--enable-nls' '--with-python' '--with-perl' '--with-tcl' '--with-openssl' '--with-libxml' '--with-ldap' '--with-pam' 'CFLAGS=-O0' > > So, we're currently using this on coverage.postgresql.org? We've switched? Yes, I changed it the day you first suggested it. > I noticed a better example of weird line counts today, this time > within _bt_check_rowcompare(): > > 1550 4 : cmpresult = 0; > 1551 4 : if (subkey->sk_flags & SK_ROW_END) > 1552 1292 : break; > 1553 0 : subkey++; > 1554 0 : continue; > > I would expect the "break" statement to have a line count that is no > greater than that of the first two lines that immediately precede, and > yet it's far far greater (1292 is greater than 4). It looks like there > has been some kind of loop transformation. Maybe it takes more than -O0 in cflags to disable those, but as I said, the compile lines do show the -O0. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services