On 18/8/2025 13:50, Kirill Reshke wrote:
Hi!
On Sun, 17 Aug 2025 at 23:34, Xuan Chen <[email protected]> wrote:
- Any relevant references in the source code (planner, plancache.c, executor)
that I should study would be very helpful.
Here is extension implementing saving and restoring plans[0]
[0]https://github.com/postgrespro/sr_plan
I wouldn't recommend this obsolete version of the extension. Since the
QueryId was introduced, we have redesigned it extensively, with the
basic idea that QueryId serves as a 'query plan class' and that matching
parse trees provide a proof of matching incoming queries with their
corresponding [parameterised] plans.
--
regards, Andrei Lepikhov