Re: surprising query optimisation

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: surprising query optimisation
Date: 2018-12-05 11:49:53
Message-ID: 2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Withers schrieb am 05.12.2018 um 12:42:
> So, interestingly, this box has 250GB memory in it, and even though
> I've set effective_cache_size to 200GB, I only see 9G of memory being
> used. How can I persuade postgres to keep more in memory?
effective_cache_size is a hint to the optimizer on how much data is to be expected to be cached (by the filesystem).

Only shared_buffers (and work_mem) will actually allocate memory from the operating system.

Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Flower 2018-12-05 12:45:10 Re: simple division
Previous Message Thomas Kellerer 2018-12-05 11:48:28 Re: surprising query optimisation