Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2025-09-02T15:27:15Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix planner error when estimating SubPlan cost
- 8c02d92c6475 13.23 landed
- 160ef51c8dba 14.20 landed
- 53e35fb560ab 15.15 landed
- 79ade5873232 16.11 landed
- f34202f51867 17.7 landed
- ab4a35b4ea9d 18.0 landed
- aba8f61c3091 19 (unreleased) landed
Richard Guo <guofenglinux@gmail.com> writes: > Here is the patch that passes root as NULL to cost_qual_eval() in > cost_subplan(), along with some commentary about why. v2 LGTM. I did think of a way to make the test case a little less busy-looking: select (1 = any(array_agg(f1))) = any (select false) from int4_tbl; but that's just cosmetic. regards, tom lane