public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Stephen Samuel (Sam) <[email protected]>
Cc: Peter Geoghegan <[email protected]>
Cc: [email protected]
Subject: Re: Trying to understand why a query is filtering when there is a composite index
Date: Mon, 19 Aug 2024 19:55:26 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CANRyZ7b4VoikwGtJuEWs03Lbi2Y3=ztWLUisWZ5h3d9nZxVj0Q@mail.gmail.com>
References: <CANRyZ7Z7_JmX7fdLWdZN+ReYiEgafOMB3uva=3JNeQQj+ahnyA@mail.gmail.com>
	<[email protected]>
	<CAH2-WznnZuHxiUXR2wa7c-pcd3WcTwcz+OO9QZpeNhWR6DVbUA@mail.gmail.com>
	<[email protected]>
	<CAH2-Wzn=bt0tkesjqdLXF4k6P8vT4OO+kQziGvFct4DXMT8RuA@mail.gmail.com>
	<CANRyZ7b4VoikwGtJuEWs03Lbi2Y3=ztWLUisWZ5h3d9nZxVj0Q@mail.gmail.com>

"Stephen Samuel (Sam)" <[email protected]> writes:
> This index covers both columns needed in the predicate/projection, and the
> visibility bit is almost always set, why does it need to go to the heap at
> all and doesn't just get what it needs from the index?

Peter's theory was that the particular tuples you were fetching were
in not-all-visible pages.  That seems plausible to me.

			regards, tom lane





view thread (14+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Trying to understand why a query is filtering when there is a composite index
  In-Reply-To: <[email protected]>

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

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