pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: need suggestion on querying big tables
Date: Tue, 6 Dec 2022 09:25:47 -0600
Message-ID: <668ca86c-3e66-e3ac-3b2e-1b716ce3859f@gmail.com> (raw)
In-Reply-To: <3617537.1670338992@sss.pgh.pa.us>
References: <CAJuN1jj6NQDUjbMH=n4zry10JMJEZ8bRi=j6uA-3_108-Tq9cQ@mail.gmail.com>
	<d926084d-63a7-854b-2d8d-459d33ec7f70@gmail.com>
	<3617537.1670338992@sss.pgh.pa.us>

On 12/6/22 09:03, Tom Lane wrote:
> Ron <ronljohnsonjr@gmail.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.

The docs say that ECS is an estimate of how much cache one query can use, 
no?  If more than one query is running on a server at a time, then wouldn't 
a huge ECS confuse things?

-- 
Angular momentum makes the world go 'round.





view thread (15+ messages)  latest in thread

Message-ID: <668ca86c-3e66-e3ac-3b2e-1b716ce3859f@gmail.com>
Permalink:  ../668ca86c-3e66-e3ac-3b2e-1b716ce3859f@gmail.com/
Also on:    postgresql.org/message-id/668ca86c-3e66-e3ac-3b2e-1b716ce3859f@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: need suggestion on querying big tables
  In-Reply-To: <668ca86c-3e66-e3ac-3b2e-1b716ce3859f@gmail.com>

* 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