Re: BUG #19553: Wrong results from nested LEFT JOINs over an empty subquery (regression since v16)
От
Richard Guo
Тема
Re: BUG #19553: Wrong results from nested LEFT JOINs over an empty subquery (regression since v16)
Дата
Msg-id
CAMbWs49je3+J0x+fsNZJJN4FHq20_W2LXJS=J9y80k=9kYR5Sw@mail.gmail.com
Список
Дерево обсуждения
Re: BUG #19553: Wrong results from nested LEFT JOINs over an empty subquery (regression since v16) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #19553: Wrong results from nested LEFT JOINs over an empty subquery (regression since v16) Matheus Alcantara <matheusssilv97@gmail.com>
Re: BUG #19553: Wrong results from nested LEFT JOINs over an empty subquery (regression since v16) Richard Guo <guofenglinux@gmail.com>
On Mon, Jul 20, 2026 at 11:35 AM Tom Lane wrote: > Richard Guo writes: > > It occurred to me that we can skip the new get_relids_in_jointree() > > scan altogether when there are no PHVs anywhere in the query > > (root->glob->lastPHId==0), since then the find_dependent_phvs() checks > > are no-ops anyway. This is also consistent with how we check > > root->glob->lastPHId in find_dependent_phvs() and > > find_dependent_phvs_in_jointree(). Attached is a trivial patch doing > > that. > WFM. Thanks! Pushed. - Richard
В списке pgsql-bugs по дате отправления
От: Richard Guo
Дата:
От: PG Bug reporting form
Дата: