I’m doing that now, “SET plan_cache_mode=force_custom_plan” before the copy, then auto after the copy.
No explicit analyze happening. I’m not super familiar with this code base, but a bit of looking confirmed what I thought, they served via connection pool and appear to live for the life of the app, which could be months.
After this test (tomorrow likely) I can try the explicit ANALYZE after the copy completes.
Best,
Robert
|