Re: Needs Suggestion

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Needs Suggestion
Дата
Msg-id BANLkTi=cU6i3da=pEdTUKBQySdE9n6_drw@mail.gmail.com
обсуждение исходный текст
Ответ на Needs Suggestion  (SUBHAM ROY <subham.iem@gmail.com>)
Ответы Re: Needs Suggestion  (SUBHAM ROY <subham.iem@gmail.com>)
Список pgsql-general
On Wed, Apr 27, 2011 at 16:35, SUBHAM ROY <subham.iem@gmail.com> wrote:
> Can I calculate the Buffer Hit ratio of a particular query in postgres? That
> is how many times it finds the required page in its buffer cache,
> pg_buffercache or the
> linux buffer cache.

You can get the information from the pg cache using
EXPLAIN (ANALYZE, BUFFERS) <your query>

It won't get you the stats from the linux filesystem cache though. You
can perhaps use pgfincore for that in some way.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

В списке pgsql-general по дате отправления:

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: Index not being used for UPDATE?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Partial Index [WHERE col IN ('A','B')] Planner Anomalies