Re: understanding pg_stat* numbers - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: understanding pg_stat* numbers
Date
Msg-id d2j4op$1c9t$1@news.hub.org
Whole thread Raw
In response to understanding pg_stat* numbers  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
"Oleg Bartunov" <oleg@sai.msu.su> writes
> One mystery remains, why stats show heap_blks_read > 0 for indexed search
?
>      select 1 from foo where id=5
> I did pg_stat_reset() before run query.
>

There is no clustered index in PG so far, so all the data item has to be
stay in the heap. In brief, the executor has to check the visibility of each
row in the heap pointed by the index. For performance consideration, if one
row is invisible("killed"), PG could remember its status it in the index
item identifier, so next time it just ignore it.

Regards,
Qingqing






pgsql-hackers by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Name change proposal
Next
From: Thomas Hallgren
Date:
Subject: Re: Name change proposal