Re: need suggestion on querying big tables - Mailing list pgsql-admin

From Scott Ribe
Subject Re: need suggestion on querying big tables
Date
Msg-id AF5ECE5E-E6BA-41DD-B644-EB92A870736A@elevated-dev.com
Whole thread Raw
In response to Re: need suggestion on querying big tables  (Ron <ronljohnsonjr@gmail.com>)
List pgsql-admin
> On Dec 6, 2022, at 8:51 AM, Ron <ronljohnsonjr@gmail.com> wrote:
>
> https://www.postgresql.org/docs/11/runtime-config-query.html
>
> effective_cache_size is how much RAM a single query gets.  "When setting this parameter you should consider both
PostgreSQL'sshared buffers". 
>
> https://www.postgresql.org/docs/11/runtime-config-resource.html
>
> "a reasonable starting value for shared_buffers is 25% of the memory in your system. There are some workloads where
evenlarger settings for shared_buffers are effective, but because PostgreSQL also relies on the operating system cache,
itis unlikely that an allocation of more than 40% of RAM to shared_buffers will work better than a smaller amount." 
>
> You've set effective_cache_size to 83%, when it should be at most 20%.

effective_cache_size is a hint as to how much RAM is available for the operating system file cache after all other uses
aretaken into account. 


pgsql-admin by date:

Previous
From: Ron
Date:
Subject: Re: need suggestion on querying big tables
Next
From: Samed YILDIRIM
Date:
Subject: Re: need suggestion on querying big tables