clear cache in postgresql - Mailing list pgsql-general

From Atul Kumar
Subject clear cache in postgresql
Date
Msg-id CA+ONtZ75zZv+7ThMdiyFVAa7ZXBSv6NLAGgLqmzbrrjMU3Os8g@mail.gmail.com
Whole thread Raw
Responses Re: clear cache in postgresql  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-general
Hi,

I have an postgres 10 instance on RDS.

Sometimes I run a Postgres query it takes 30 seconds. Then, I
immediately run the same query and it takes 2 seconds. It appears that
Postgres has some sort of caching. Can I somehow see what that cache
is holding? Can I force all caches to be cleared for tuning purposes?

So I need to clear the cache without restarting/rebooting the postgres
server to check the correct execution plan of my query.

Please help me with your suggestions.




Regards.



pgsql-general by date:

Previous
From: Atul Kumar
Date:
Subject: Re: query issue
Next
From: Julien Rouhaud
Date:
Subject: Re: clear cache in postgresql