pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rakesh Kumar <rakeshkumar464@aol.com>
To: krithikavenkatesh31@gmail.com
To: pgsql-general@postgresql.org
Subject: Re: Parallel Btree index scan
Date: Wed, 17 Jan 2018 06:35:25 -0500
Message-ID: <16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net> (raw)
In-Reply-To: <CAP7eca27xieW4xbzTwmWZ_4iVb4bRM50pcBozmqv6MNosCwkVQ@mail.gmail.com>




> And what is the difference between index scan and index only scan.

Index scan:  Index lookup for key access plus read from data blocks to satisfy the query.

Index only scan: Index lookup for key access plus read from index pages itself to satisfy query. In other words, entire query can
be satisfied by index without bothering to go into data pages.  For eg: select count(*) from table where col1 = 123. Assuming col1
 is indexed, there is no need to visit data blocks.












view thread (2+ messages)

Message-ID: <16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net>
Permalink:  ../16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net/
Also on:    postgresql.org/message-id/16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rakeshkumar464@aol.com, krithikavenkatesh31@gmail.com
  Subject: Re: Parallel Btree index scan
  In-Reply-To: <16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net>
  References: <CAP7eca27xieW4xbzTwmWZ_4iVb4bRM50pcBozmqv6MNosCwkVQ@mail.gmail.com> <16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net>

* 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