Re: effective_cache_size cfg

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: "Ghiurea, Isabella" <Isabella(dot)Ghiurea(at)nrc-cnrc(dot)gc(dot)ca>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: effective_cache_size cfg
Date: 2018-10-16 08:02:47
Message-ID: 42dda8dfa0e034b8430b9d2494b42bd63d2a73ff.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ghiurea, Isabella wrote:
> I am running PGSQL 10.4 on Cent OS Pg instance has ' effective_cache_size' parameter not
> enabled I would like to learn what will the optimizer behavior be in this case ?
> ( default is set to 4GB , I was thinking PG 's optimizer will try to use all available
> OS RAM when trying to estimate a query, is this the case)

You should set that parameter to the total amount of RAM available for
your database. This is so that PostgreSQL has an idea how much of
the operating system's file system cache is used for database files.

It will only influence the estimate for nested loop joins, as far
as I know: the bigger the value, the more likely PostgreSQL is to
pick a nested loop join with an index on the inner side (because it
thinks that the index will be in cache pretty soon).

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message samuel.cc 2018-10-17 05:55:49 Slow client connection to postgresql server
Previous Message Mark Kirkwood 2018-10-16 06:07:29 Re: Hick ups in Postgresql Logical Replication