Re: To keep indexes in memory, is large enough effective_cache_size enough?

From: "Sam R(dot)" <samruohola(at)yahoo(dot)com>
To: "Sam R(dot)" <samruohola(at)yahoo(dot)com>, "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: To keep indexes in memory, is large enough effective_cache_size enough?
Date: 2018-09-19 09:15:03
Message-ID: 954477769.6489282.1537348503194@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi!
Is is possible to force PostgreSQL to keep an index in memory? The data in db table columns is not needed to be kept in memory, only the index. (hash index.)

It would sound optimal in our scenario.I think Oracle has capability to keep index in memory (in-memory db functionality). But does PostgreSQL have such a functionality? (I keep searching.)
I have read:
Tuning Your PostgreSQL Server - PostgreSQL wiki
(effective_cache_size, shared_buffers)
I have seen responses to:
PostgreSQL Index Caching

Should I actually set shared_buffers to tens of gigabytes also, if I want to keep one very big index in memory?

I ma also reading a PG book.

Best Regards, Sam

On Wednesday, September 19, 2018 11:40 AM, Sam R. <samruohola(at)yahoo(dot)com> wrote:

Hi!

Related to my other email (size of index in memory),

Other questions,
Q: To keep _index(es)_ in memory, is large enough effective_cache_size enough?
Q: Size of shared_buffers does not matter regarding keeping index in memory?
Or have I missed something, does it matter (to keep indexes in memory)?

Background info: I have plans to use hash indexes: very large amount of data in db tables, but (e.g. hash) indexes could be kept in memory.

I am using PostgreSQL 10. I could start to use PostgreSQL 11, after it has been released.

Best Regards, Sam

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Sam R. 2018-09-19 09:18:24 Re: To keep indexes in memory, is large enough effective_cache_size enough?
Previous Message Sergei Kornilov 2018-09-19 09:10:52 Re: To keep indexes in memory, is large enough effective_cache_size enough?