pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Jesper Pedersen <jesper.pedersen@redhat.com>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: MDAM techniques and Index Skip Scan patch
Date: Mon, 28 Mar 2022 22:07:44 -0400
Message-ID: <1065129.1648519664@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-Wz=yejXW1S=R8TOmOwuG8Cu64dQZyYCs1BGzc_0dLXqQMQ@mail.gmail.com>
References: <CAH2-WzmUscvoxVkokHxP=uPTDjSi0tJkFpUPD-CeA35dvn-CMw@mail.gmail.com>
	<2587523.1647982549@sss.pgh.pa.us>
	<CAH2-Wz=yejXW1S=R8TOmOwuG8Cu64dQZyYCs1BGzc_0dLXqQMQ@mail.gmail.com>

Peter Geoghegan <pg@bowt.ie> 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





view thread (25+ messages)  latest in thread

Message-ID: <1065129.1648519664@sss.pgh.pa.us>
Permalink:  ../1065129.1648519664@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1065129.1648519664@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@bowt.ie, jesper.pedersen@redhat.com, 9erthalion6@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: MDAM techniques and Index Skip Scan patch
  In-Reply-To: <1065129.1648519664@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox