Re: need suggestion on querying big tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: need suggestion on querying big tables
Date: 2022-12-06 15:03:12
Message-ID: 3617537.1670338992@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ron <ronljohnsonjr(at)gmail(dot)com> writes:
> You've set effective_cache_size to 83%, when it should be at most 20%.

I think you're confusing effective_cache_size with the size of
shared buffers. It's meant to be an estimate of the total disk
cache space available, in both shared buffers and OS caches.

In any case, it's a fairly spongy parameter. It doesn't correspond
to any allocation actually made or requested in Postgres; it just
serves to tweak the planner's guesses about how expensive repeated
indexscans are likely to be. 83% of available RAM might be too
much, but it's probably not causing any real problems.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2022-12-06 15:25:47 Re: need suggestion on querying big tables
Previous Message Thomas Kellerer 2022-12-06 14:59:16 Re: need suggestion on querying big tables