pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: surprising query optimisation
Date: Wed, 5 Dec 2018 12:49:53 +0100
Message-ID: <2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net> (raw)
In-Reply-To: <6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org>
References: <03a0af57-3ebc-5501-10ef-6a639c7c34b8@withers.org>
	<20181128224950.GS3415@tamriel.snowman.net>
	<5d7f8d97-32f3-fd88-44cc-948673579a71@withers.org>
	<20181130153327.GA3415@tamriel.snowman.net>
	<9a952022-82b1-a88d-07fb-72c47bc0f875@archidevsys.co.nz>
	<6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org>

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




view thread (19+ messages)  latest in thread

Message-ID: <2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net>
Permalink:  ../2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net/
Also on:    postgresql.org/message-id/2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: surprising query optimisation
  In-Reply-To: <2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net>
  References: <03a0af57-3ebc-5501-10ef-6a639c7c34b8@withers.org> <20181128224950.GS3415@tamriel.snowman.net> <5d7f8d97-32f3-fd88-44cc-948673579a71@withers.org> <20181130153327.GA3415@tamriel.snowman.net> <9a952022-82b1-a88d-07fb-72c47bc0f875@archidevsys.co.nz> <6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org> <2c20b0ef-afc2-d1c9-8304-dab751375269@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox