> this for better tracking. By adding a CachedPlanSource::cplan link, we > can establish a connection to the entire PlanCache entry instead of only > CachedPlan within a queryDesc and, consequently, make it accessible from > the executor. This would give an access to statistics on costs and the > number of replannings.
This maybe out of scope for this patch, but can you elaborate on what you mean by "CachedPlanSource::cplan link" ? -- Sami