Re: BUG #18576: Using EXPLAIN (VERBOSE) in information_schema.element_types returns ERROR: failed to find plan for
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: vasiliy.boytsov@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2024-08-09T15:25:27Z
Lists: pgsql-bugs
I wrote: > Richard Guo <guofenglinux@gmail.com> writes: >> Agreed. Do you think it would be helpful to add some assertions to >> verify the plan type? > I thought about that but didn't experiment with it. I wonder whether > it'd just make the code more fragile. Still, it might be useful to > verify that things are happening as we expect. After sleeping on it, I elected to add the Asserts as suggested, except in v12 where they'd have had to look different. That's not strictly a matter of laziness: v12's next release will be its last, and I've been burned often enough to become very hesitant about pushing even slightly-questionable code into an EOL release. Pushed with that change. regards, tom lane
Commits
-
Fix "failed to find plan for subquery/CTE" errors in EXPLAIN.
- b919a97a6cd2 18.0 landed
- 81a12a447753 17.0 landed
- 7408772de563 12.21 landed
- 3ad35d5022c9 13.17 landed
- 120dd033761d 14.14 landed
- 12010f414615 15.9 landed
- 03f679475d9a 16.5 landed
-
Make the upper part of the planner work by generating and comparing Paths.
- 3fc6e2d7f5b6 9.6.0 cited