From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | James Mansion <james(at)mansionfamily(dot)plus(dot)com> |
Cc: | Claudio Freire <klaussfreire(at)gmail(dot)com>, Tomas Vondra <tv(at)fuzzy(dot)cz>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Performance |
Date: | 2011-04-29 23:00:23 |
Message-ID: | 61F862B4-6AB8-40BA-8B25-9C18988665B2@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Apr 29, 2011, at 10:25 AM, James Mansion <james(at)mansionfamily(dot)plus(dot)com> wrote:
> Robert Haas wrote:
>> The server can and does measure hit rates for the PG buffer pool, but to my knowledge there is no clear-cut way for PG to know whether read() is satisfied from the OS cache or a drive cache or the platter.
>>
>>
> Does the server know which IO it thinks is sequential, and which it thinks is random?
No. It models this in the optimizer, but the executor has no clue. And sometimes we model I/O as partly random, partly sequential, as in the case of heap fetches on a clustered index. So the answer isn't even a Boolean.
...Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2011-04-29 23:03:23 | Re: Performance |
Previous Message | Robert Haas | 2011-04-29 22:53:48 | Re: index usage on queries on inherited tables |