Does pg_stat_user_tables
validate that the major updates are indeed "hot updates"? Otherwise,
you may be experiencing bloat problems if autovacuum is not set
aggressively. Did you change default parameters for autovacuum? You
should. They are set very conservatively right outa the box. Also, I
wouldn't increase work_mem too much unless you are experiencing query
spill over to disk. Turn on "log_temp_files" (=0) and monitor if you
have this spillover. If not, don't mess with work_mem. Also, why isn't
effective_cache_size set closer to 80-90% of memory instead of 50%?
Are there other servers on the same host as postgres? As the other
person mentioned, tune checkpoints so that they do not happen too
often. Turn on "log_checkpoints" to get more info. Regards, Michael Vitale Rick Otten wrote on 7/29/2019 8:35 AM:
|