Re: Assert failure in find_var_for_subquery_tle - Mailing list pgsql-hackers

From shihao zhong
Subject Re: Assert failure in find_var_for_subquery_tle
Date
Msg-id CAGRkXqRQPMYAQK0sBbvPVXeEGsP=LV7muQmEVsue9R7v=y05EQ@mail.gmail.com
Whole thread
In response to Assert failure in find_var_for_subquery_tle  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
Hi Richard,

The fix looks right to me. The new test trips the Assert without the
pathkeys.c change.

A CTE scan as the member hits the same Assert, example:

set_cte_pathlist().
explain (costs off)
with c as materialized (select q2 from int8_tbl order by q2)
select ss.v from int8_tbl x,
  lateral (select x.q1 from c union all
           select q2 from int8_tbl) ss(v);

The patch fixes this one too. Maybe the commit message could mention
it as well.

Thanks,
Shihao



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [PG19] Wrong results from NOT NULL-based expression simplification
Next
From: shihao zhong
Date:
Subject: Re: pg_resetwal: refuse to run when backup_label exists