pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Shared buffers increased but cache hit ratio is still 85%
Date: Wed, 18 Jul 2018 10:43:30 +0200
Message-ID: <6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de> (raw)
In-Reply-To: <CAApBw37fKf42KjQbt3cQfj7V4gx7LPAdLOMsLCRP__2TRRhvVg@mail.gmail.com>
References: <CAApBw37fKf42KjQbt3cQfj7V4gx7LPAdLOMsLCRP__2TRRhvVg@mail.gmail.com>



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





view thread (5+ messages)  latest in thread

Message-ID: <6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de>
Permalink:  ../6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de/
Also on:    postgresql.org/message-id/6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andreas@a-kretschmer.de
  Subject: Re: Shared buffers increased but cache hit ratio is still 85%
  In-Reply-To: <6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de>
  References: <CAApBw37fKf42KjQbt3cQfj7V4gx7LPAdLOMsLCRP__2TRRhvVg@mail.gmail.com> <6ac7183c-d93b-9fc5-d7a7-8d2f312be0c0@a-kretschmer.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox