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

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Shared buffers increased but cache hit ratio is still 85%
Date: 2018-07-18 08:43:30
Message-ID: 6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raghavendra Rao J S V 2018-07-18 09:13:30 Is it ok to run vacuum full verbose command for live database for the tables which has more dead tuples?
Previous Message Hans Schou 2018-07-18 08:26:21 Shared buffers increased but cache hit ratio is still 85%