Re: plan shape work
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>,
Alexandra Wang <alexandra.wang.oss@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
"bruce@momjian.us" <bruce@momjian.us>, lepihov@gmail.com
Date: 2025-09-23T21:27:37Z
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
Attachments
- v8-0001-Ensure-that-all-joinrel-RTIs-are-discoverable-fro.patch (text/x-diff) patch v8-0001
Robert Haas <robertmhaas@gmail.com> writes: > On Mon, Sep 22, 2025 at 2:15 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> In the second place, we should not need to add two hundred lines >> of new code to createplan.c to accomplish this. Why not simply >> bms_difference the joinrel's relids from the union of the inputs' >> relids? > ... On the other hand, I'm not sure that I'm interpreting your remarks > correctly. When you say "bms_difference the joinrel's relids from the > union of the inputs' relids" maybe you're specifically talking about > the handling of the RTE_JOIN relids, and I don't care very much how we > account for those. So I guess I need some clarification here as to > what your thinking is. What I'm saying is that I'd be much happier with 0003 if it looked about like the attached. We do not need a heap of mechanism redundantly proving that the planner is getting these things right (and potentially containing its own bugs). > Note that my goal for > this commitfest was to get 0001-0004 committed, partly because I > wasn't too sure whether the later patches might need some adjustment. Fair enough. I think we can reach agreement on that much pretty quickly. regards, tom lane