Re: Parallel Btree index scan

From: Rakesh Kumar <rakeshkumar464(at)aol(dot)com>
To: krithikavenkatesh31(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Parallel Btree index scan
Date: 2018-01-17 11:35:25
Message-ID: 16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jacek Kołodziej 2018-01-17 13:08:23 READ COMMITTED vs. index-only scans
Previous Message Adam =?utf-8?Q?Sj=C3=B8gren?= 2018-01-17 07:02:01 Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100