From: | Robert Creager <robertc(at)spectralogic(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Need help identifying a periodic performance issue. |
Date: | 2021-11-19 18:47:45 |
Message-ID: | 40167D9A-8FDE-4F47-9AD0-897F7242A6B7@spectralogic.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Nov 18, 2021, at 2:42 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us<mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us>> wrote:
This message originated outside your organization.
Thomas Munro <thomas(dot)munro(at)gmail(dot)com<mailto:thomas(dot)munro(at)gmail(dot)com>> writes:
This is all guesswork though, since we don't know quite what's
happening on Robert's system. It might be worth setting
"log_autovacuum_min_duration = 0" (either globally, or as a
reloption on the relevant tables), and seeing if there seems
to be any correlation between autovacuum/autoanalyze activity
and the occurrences of poor plan choices.
Ok, doing a SET plan_cache_mode=force_custom_plan before the COPY and resetting it after appears to fix the problem. We’re going to run it over the weekend to make sure.
So, I thank you very much for all your help.
I have logs with autovacuum=0 and dtrace output every minute, but suspect that won’t help you now. Would you like me to remove the fix next week and reproduce the issue with the same config to provide more information for trouble shooting? I may be able get a SSH session into a live system, I’d have to check with IT to see if that’s possible/allowed.
Best,
Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2021-11-23 19:42:35 | Re: performance of analytical query |
Previous Message | Robert Creager | 2021-11-18 22:30:39 | Re: Need help identifying a periodic performance issue. |