Re: Shared buffers increased but cache hit ratio is still 85%

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Shared buffers increased but cache hit ratio is still 85%
Дата
Msg-id 6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de
обсуждение исходный текст
Ответ на Shared buffers increased but cache hit ratio is still 85%  (Hans Schou <hans.schou@gmail.com>)
Ответы Re: Shared buffers increased but cache hit ratio is still 85%  (Hans Schou <hans.schou@gmail.com>)
Re: Shared buffers increased but cache hit ratio is still 85%  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-general

Am 18.07.2018 um 10:26 schrieb Hans Schou:
> Am I doing something wrong or should some history be cleared?

Reset the stats for that database. You can check the date of last reset 
with:

select stats_reset from pg_stat_database where datname = 'database_name';

and reset it with:

||pg_stat_reset()
||
||Reset all statistics counters for the current database to zero 
(requires superuser privileges by default, but EXECUTE for this function 
can be granted to others.)||


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com



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

Предыдущее
От: Hans Schou
Дата:
Сообщение: Shared buffers increased but cache hit ratio is still 85%
Следующее
От: Raghavendra Rao J S V
Дата:
Сообщение: Is it ok to run vacuum full verbose command for live database for thetables which has more dead tuples?