Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebm0D-0004rd-6m for pgsql-general@arkaria.postgresql.org; Wed, 17 Jan 2018 11:35:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebm0C-0001Fe-L5 for pgsql-general@arkaria.postgresql.org; Wed, 17 Jan 2018 11:35:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ebm0C-0001FT-8e for pgsql-general@lists.postgresql.org; Wed, 17 Jan 2018 11:35:32 +0000 Received: from omr-a008e.mx.aol.com ([204.29.186.51]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ebm08-000409-57 for pgsql-general@postgresql.org; Wed, 17 Jan 2018 11:35:29 +0000 Received: from mtaomg-aaj01.mx.aol.com (mtaomg-aaj01.mx.aol.com [172.27.3.207]) by omr-a008e.mx.aol.com (Outbound Mail Relay) with ESMTP id C4A0F380004F; Wed, 17 Jan 2018 06:35:25 -0500 (EST) Received: from core-aax11d.mail.aol.com (core-aax11.mail.aol.com [172.27.155.4]) by mtaomg-aaj01.mx.aol.com (OMAG/Core Interface) with ESMTP id 9334338000082; Wed, 17 Jan 2018 06:35:25 -0500 (EST) Received: from 69.248.80.3 by webjas-vad073.srv.aolmail.net (10.96.35.76) with HTTP (WebMailUI); Wed, 17 Jan 2018 06:35:25 -0500 Date: Wed, 17 Jan 2018 06:35:25 -0500 From: Rakesh Kumar To: krithikavenkatesh31@gmail.com, pgsql-general@postgresql.org Message-Id: <16103e6fe0e-1719-e6dc@webjas-vad073.srv.aolmail.net> In-Reply-To: Subject: Re: Parallel Btree index scan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-MB-Message-Source: WebUI X-MB-Message-Type: User X-Mailer: JAS STD X-Originating-IP: [69.248.80.3] x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1516188925; bh=1n/Jf0iui9zHgYyK/KOcQ3XgXTGRr5UMhaZRPAsPbvM=; h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type; b=xpgZDLuj5txbsFC0XlGzuYCfEAKElXHbDSe8YEZfhJbU5JrfPagAyNv9/h6NFhBGD aHYf2jYxFVxIAPMRzEuCP5CqStYSFH+7NXsCPheCIoBA0OEEV8hmiLJTFdE5L5nsBX 3VR157snZVGrMUgFo5VCp5lf/KeTA3W0rMZlnCak= x-aol-sid: 3039ac1b03cf5a5f34fd075d List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 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.