Is there any way to check if index is loaded to memory?
Check the contrib module pg_buffercache
After installation you can use this query to see if the table and index are in the buffercache:
SELECT
DISTINCT
relname
FROM
pg_buffercache
JOIN pg_class USING (relfilenode)
WHERE
relname IN('your_tablename','your_index_name');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With