| От | Andy Colson |
|---|---|
| Тема | Re: Needs Suggestion |
| Дата | |
| Msg-id | 4DB854F8.7050303@squeakycode.net обсуждение исходный текст |
| Ответ на | Needs Suggestion (SUBHAM ROY <subham.iem@gmail.com>) |
| Список | pgsql-general |
On 4/27/2011 9:35 AM, SUBHAM ROY 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. > > -- > Thank You, > Subham Roy, > CSE IIT Bombay. > There are plenty of stats per table, but I dont think you'll find anything per query. However, you could clear the table stats, run the query a bunch of times, then look at the table stats. Also, it'll tell you pg buffer hits, but you wont really know if it hit the linux cache or actual hard drive. Google can help you out with table stats: postgres cache hit -Andy
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера