Обсуждение: Parallel Btree index scan

Поиск
Список
Период
Сортировка

Parallel Btree index scan

От
Krithika Venkatesh
Дата:
Hi All,

Can you please help me to understand what is parallel btree index scan in Postgres 10.


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

Thanks,
Krithika


Re: Parallel Btree index scan

От
Rakesh Kumar
Дата:


> 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
querycan
 
be satisfied by index without bothering to go into data pages.  For eg: select count(*) from table where col1 = 123.
Assumingcol1
 
 is indexed, there is no need to visit data blocks.