0

I just wanted to know what's the equivalent query in PostgreSQL to MySQL's

SET SESSION query_cache_type = ON SET SESSION query_cache_type = OFF

1
  • Why do you think you need something like this? What's your real problem? Commented May 25, 2010 at 11:36

1 Answer 1

3

There is no equivalent. PostgreSQL has a very different internal architecture from MySQL and its caching ("shared buffers") works on another level. It does not store query results, but rather the data which is needed to compute those results (query plans and tables, basically).

https://www.postgresql.org/docs/current/static/runtime-config-resource.html

https://www.postgresql.org/message-id/[email protected]

http://www.mail-archive.com/[email protected]/msg109033.html

Sign up to request clarification or add additional context in comments.

1 Comment

I believe the only time PG caches a query plan is for a prepared statement - which causes a whole other set of issues.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.