Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3OwW-0002df-T8 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Jun 2015 13:24:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z3OwW-0005wf-5h for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Jun 2015 13:24:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z3OwU-0005ti-Is for pgsql-bugs@postgresql.org; Fri, 12 Jun 2015 13:24:18 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z3OwR-0007Pb-Lu for pgsql-bugs@postgresql.org; Fri, 12 Jun 2015 13:24:17 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 6323B860003; Fri, 12 Jun 2015 15:24:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-7.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC5241.dip0.t-ipconnect.de [93.220.82.65]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 6CAED860002; Fri, 12 Jun 2015 15:24:12 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 00A1D10212D; Fri, 12 Jun 2015 15:24:11 +0200 (CEST) Date: Fri, 12 Jun 2015 15:24:11 +0200 From: Andres Freund To: polpot78@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13437: Seq Scan increases heap_blks_read instead of heap_blks_hit when no disk is read Message-ID: <20150612132411.GD28424@awork2.anarazel.de> References: <20150612132133.32368.65305@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150612132133.32368.65305@wrigleys.postgresql.org> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-06-12 13:21:33 +0000, polpot78@gmail.com wrote: > When a seq scan is performed, but no real disk reads is performed, then > postgreSQL still reports that disk-reads are performed. iostat reports that > no Blocks are read. Note that postgres' reports everything as a disk read that goes to the OS. Which then does it's own level of caching. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs