Re: [HACKERS] counting disk access from index seek operation -- how to?

2005-09-12 Thread Qingqing Zhou
"huaxin zhang" <[EMAIL PROTECTED]> wrote >I need a way to tell how many pages loaded from disk for a particular > index seek operation. By pages loaded, you mean physically or logically? In either ways, I would suggest you to take a look at _bt_getbuf(). > > What I did is to set a global flag t

[HACKERS] counting disk access from index seek operation -- how to?

2005-09-11 Thread huaxin zhang
I need a way to tell how many pages loaded from disk for a particular index seek operation. What I did is to set a global flag to true before calling the following statement (inside index_getnext() in "/backend/access/indexam.c") found = DatumGetBool(FunctionCall2(&scan->fn_getnext,