Re: plan shape work
Andy Fan <zhihuifan1213@163.com>
From: Andy Fan <zhihuifan1213@163.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-05-22T00:54:49Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Assign each subquery a unique name prior to planning it.
- 8c49a484e8eb 19 (unreleased) landed
-
Keep track of what RTIs a Result node is scanning.
- f2bae51dfd5b 19 (unreleased) landed
Robert Haas <robertmhaas@gmail.com> writes: > Hi, > > ... As a recap, my overall goal here > is to make it so that you can examine a finished plan, figure out what > decisions the planner made, and then somehow get the planner to make > those same decisions over again in a future planning cycle. I am feeling that this is similar with Oracle's outline feature, where the final plan is examined and then a series of hints are stored and then during the replanning of the the same query, these hints will be applied to planner. If one of the hints is not appliable any more, like the index is unusable, it is just ignored. > This list of elided nodes is stored in the PlannedStmt I did a quick check on the attached patches and I can see some more information is added into PlannedStmt. then my question are the PlannedStmt is not avaiable during the future planning cycle, then how does these information would be helpful on the feture planning? and I'm strange that there are little changes on the optimizer part. Does this patchset just a preparation work for reconstructing a same plan in future? > outside of the portion of the tree that actually gets executed, so > that code that is doing plan tree inspection can look at it but > execution doesn't get any slower. Thank you for sharing this! -- Best Regards Andy Fan