Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phk8f-0002JB-Ud for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Mar 2023 04:43:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phk7g-00005q-0y for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Mar 2023 04:42:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phk7f-00005f-Oj for pgsql-bugs@lists.postgresql.org; Thu, 30 Mar 2023 04:42:51 +0000 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phk7d-0006fO-21 for pgsql-bugs@lists.postgresql.org; Thu, 30 Mar 2023 04:42:50 +0000 Received: by mail-yb1-xb2b.google.com with SMTP id r187so22047843ybr.6 for ; Wed, 29 Mar 2023 21:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1680151368; x=1682743368; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=We9qoFXdRRDQ0S28dey2yKT6db9pXKCwolwlxDq50aE=; b=CqEI1REThgPuNAvk5tQGailXMAYPhiQOKRtifOwkQJTk7SzuQ7gEfVYOv1PBswdY9M otBiXpAf6m3RWdIQJpkqrtlP2GuzVo+GRPqg6O/DfiEA3eOgcCEjMg49cX57WZU3Yns8 INbqtibpLCAzB22AeN5yWPsv2umAa2eWG20Ho= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680151368; x=1682743368; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=We9qoFXdRRDQ0S28dey2yKT6db9pXKCwolwlxDq50aE=; b=V57rucg4O8Cfdi5ccHZNvAgvUElo2Q4M2pX+3/O6inJ/XOvFW14rOBV+n7Rj24v8PX +WTSY+OPiu1RWE1zMV5BUGR6yYCTgStW5w+47P/MgP9sCIeTfoRiqdGMhty2Z3aUz1ye UK0PK1yTORFiP1wSE+H4nT2EnBBnIBTzDlNSDaa1pQm4dOeHeIGmJ73h0I6U7Zr3wbO3 +uScV04NgIJ/4Cos6mFymmZ1DYnsnCuEaTWzHMu4pXmJQOzTjetsSGt0i7YSCFuuBqTu xVUjgmwc2sPfjN/wQ0abeWhBLr8qe+HhGimLwpiN+kOGWStkXSRWCYPVdCoIjuYP8H/P 41uQ== X-Gm-Message-State: AAQBX9dp68UGXMFMGJjeRnCaof1pIAct2ACDr+uLYosrShhyWwKjLkDh iGbaImS+h+2uk3wUC0Kqg9T21A== X-Google-Smtp-Source: AKy350YRmSHxkU/alC0Dd8KrZWbiuQWbIPMTvRqpE/lFQITVwxUtF4JAhvdCEDtKs15ZzJLfSYQoAQ== X-Received: by 2002:a25:a328:0:b0:b79:6c89:86c0 with SMTP id d37-20020a25a328000000b00b796c8986c0mr14831457ybi.42.1680151368355; Wed, 29 Mar 2023 21:42:48 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id v67-20020a25abc9000000b00b7767ca747bsm3889782ybi.24.2023.03.29.21.42.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Mar 2023 21:42:48 -0700 (PDT) Date: Wed, 29 Mar 2023 21:42:45 -0700 From: Noah Misch To: Tom Lane Cc: Pavel Borisov , Alexander Lakhin , pgsql-bugs@lists.postgresql.org, kyzevan23@mail.ru Subject: Re: BUG #16329: Valgrind detects an invalid read when building a gist index with buffering Message-ID: <20230330044245.GA449998@rfd.leadboat.com> References: <16329-7a6aa9b6fa1118a1@postgresql.org> <3dda6945-c147-5afc-7720-38ec6848dafa@gmail.com> <10261.1588705157@sss.pgh.pa.us> <3990135.1680104273@sss.pgh.pa.us> <4095379.1680128498@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4095379.1680128498@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 29, 2023 at 06:21:38PM -0400, Tom Lane wrote: > *** a/src/test/regress/sql/gist.sql > --- b/src/test/regress/sql/gist.sql > *************** select p from gist_tbl order by circle(p > *** 170,175 **** > --- 170,180 ---- > select p from gist_tbl order by circle(p,1) <-> point(0,0) limit 1; > > -- Force an index build using buffering. > + insert into gist_tbl > + select box(point(0.05*i, 0.05*i), point(0.05*i, 0.05*i)), > + point(0.05*i, 0.05*i), > + circle(point(0.05*i, 0.05*i), 1.0) > + from generate_series(10001,30000) as i; > create index gist_tbl_box_index_forcing_buffering on gist_tbl using gist (p) > with (buffering=on, fillfactor=50); > > The question is whether it's worth the extra test cycles forevermore. > On my machine, the time for the gist test script goes from ~400ms to > ~600ms. That's still less than some of the concurrent scripts (brin, > privileges, and join_hash all take more than that for me), so maybe > it's fine. But it seems like a lot for a change that doesn't move the > raw code coverage results by even one line. I say +200ms is fine. This thread is a reminder of the limits of raw code coverage as a measure of tests. (I expect this will add tens of minutes to the soft-float buildfarm animal runs, but they deserve it.)