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 1nZ1Gw-0001zB-Ce for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 02:07:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZ1Gv-0004sd-5F for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 02:07:49 +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 1nZ1Gu-0004sT-SZ for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 02:07:48 +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 1nZ1Gs-00089E-J1 for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 02:07:47 +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 22T27i811065130; Mon, 28 Mar 2022 22:07:44 -0400 From: Tom Lane To: Peter Geoghegan cc: Jesper Pedersen , Dmitry Dolgov <9erthalion6@gmail.com>, PostgreSQL Hackers Subject: Re: MDAM techniques and Index Skip Scan patch In-reply-to: References: <2587523.1647982549@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Mon, 28 Mar 2022 18:58:22 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1065128.1648519664.1@sss.pgh.pa.us> Date: Mon, 28 Mar 2022 22:07:44 -0400 Message-ID: <1065129.1648519664@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > The terminology in this area is a mess. MySQL calls > SELECT-DISTINCT-that-matches-an-index "loose index scans". I think > that you're talking about skip scan when you say "loose index scan". > Skip scan is where there is an omitted prefix of columns in the SQL > query -- omitted columns after the first column that lack an equality > qual. Right, that's the case I had in mind --- apologies if my terminology was faulty. btree can actually handle such a case now, but what it fails to do is re-descend from the tree root instead of plowing forward in the index to find the next matching entry. > It might be useful for somebody to go write a "taxonomy of MDAM > techniques", or a glossary. +1. We at least need to be sure we all are using these terms the same way. regards, tom lane