> It turns out that 1722d5eb05d8e reverted 525392d5727f, which > made CachedPlan available in QueryDesc and thus > available to pgss_ExecutorEnd.
I also forgot to mention, the revert also removes the generic plan is_reused logic: ``` bool is_reused; /* is it a reused generic plan? */ ``` which we had to account for up until v5. So this simplifies the tracking a bit more as the only states to track are "generic plan" or "custom plan" only. -- Sami Imseih Amazon Web Services (AWS)