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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/14010534715277@mail.emproshunts.com
http://www.mail-archive.com/pgsql-hackers@postgresql.org/msg109033.html