How to see/calculate size of index in memory? - Mailing list pgsql-performance

From Sam R.
Subject How to see/calculate size of index in memory?
Date
Msg-id 1101666388.6439182.1537345849495@mail.yahoo.com
Whole thread Raw
Responses Re: How to see/calculate size of index in memory?  (Sergei Kornilov <sk@zsrv.org>)
List pgsql-performance

Hi!

I would have following question, if someone could help.

Question 1: How to see/calculate size of index in memory?
BTree, hash index.

I can see size of index e.g. with pg_relation_size FROM pg_class (after reindex). Does that tell size of index on disk?

I would be interested how big part of index is in memory. (Whole index?)

PG10/PG11.

Best Regards, Sam

pgsql-performance by date:

Previous
From: "Schneider, Jeremy"
Date:
Subject: Re: Select count(*) on a 2B Rows Tables Takes ~20 Hours
Next
From: "Sam R."
Date:
Subject: To keep indexes in memory, is large enough effective_cache_sizeenough?