Re: Confusion and Questions about blocks read

From: "Alex Turner" <armtuk(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Pgsql-Performance ((E-mail))" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Confusion and Questions about blocks read
Date: 2006-09-22 17:13:41
Message-ID: 33c6269f0609221013g658e19b0lfe57e392c77cf6d0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

ahh.... good point

Thanks

On 9/22/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Alex Turner" <armtuk(at)gmail(dot)com> writes:
> > Home come the query statistics showed that 229066 blocks where read
> given
> > that all the blocks in all the tables put together only total 122968?
>
> You forgot to count the indexes. Also, the use of indexscans in the
> mergejoins probably causes multiple re-reads of some table blocks,
> depending on just what the physical ordering of the rows is.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Charles Sprickman 2006-09-22 17:14:16 recommended benchmarks
Previous Message Tom Lane 2006-09-22 16:24:35 Re: Confusion and Questions about blocks read