Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error
Date
Msg-id 589702.1756826835@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: empty,query_id, pg_stat_activity
Next
From: Martin Fernau
Date:
Subject: Re: BUG #18459: running pg_ctl.exe from inside a program running as a Windows service returns "error code 6"