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 1phqkj-0000w0-Ul for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Mar 2023 11:47:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phqkh-0003VM-Jo for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Mar 2023 11:47:35 +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 1phqkh-0003VD-BS for pgsql-bugs@lists.postgresql.org; Thu, 30 Mar 2023 11:47:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phqke-0002EB-Rq for pgsql-bugs@lists.postgresql.org; Thu, 30 Mar 2023 11:47:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 32UBlT8C002602; Thu, 30 Mar 2023 07:47:29 -0400 From: Tom Lane To: Alexander Lakhin cc: Pavel Borisov , pgsql-bugs@lists.postgresql.org, kyzevan23@mail.ru Subject: Re: BUG #16329: Valgrind detects an invalid read when building a gist index with buffering In-reply-to: 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> Comments: In-reply-to Alexander Lakhin message dated "Thu, 30 Mar 2023 08:00:00 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2600.1680176849.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 30 Mar 2023 07:47:29 -0400 Message-ID: <2601.1680176849@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Lakhin writes: > As to that concrete place, I would incline to improve the test while it = stays > in line with other tests, but I lack a whole picture of the gist testing= . > It doesn't seem to me that the regress/sql/gist.sql is too comprehensive= . > I've just looked at the scan-build's results and found 9 warnings relate= d to > gist. A quick glance at the code confirms that there are indeed > interesting cases, which are not exercised for now (e.g., call > gistRelocateBuildBuffersOnSplit() with > IndexRelationGetNumberOfKeyAttributes(r) > 1). > So if I could prove that 2-3 of them are really bugs during the next wee= k, > maybe then assess that test change alongside with others (if any). > (Maybe we'll want to build that index over different columns, for exampl= e.) OK, there's certainly no urgency. regards, tom lane