postgresql/src/backend/optimizer/path
Tom Lane add673b897 Fix Asserts in calc_non_nestloop_required_outer().
These were not testing the same thing as the comparable Assert
in calc_nestloop_required_outer(), because we neglected to map
the given Paths' relids to top-level relids.  When considering
a partition child join the latter is the correct thing to do.

This oversight is old, but since it's only an overly-weak Assert
check there doesn't seem to be much value in back-patching.

Richard Guo (with cosmetic changes and comment updates by me)

Discussion: https://postgr.es/m/CAMbWs49sqbe9GBZ8sy8dSfKRNURgicR85HX8vgzcgQsPF0XY1w@mail.gmail.com
2024-01-10 13:51:36 -05:00
..
allpaths.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
clausesel.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
costsize.c Teach estimate_array_length() to use statistics where available. 2024-01-04 18:36:19 -05:00
equivclass.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
indxpath.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
joinpath.c Fix Asserts in calc_non_nestloop_required_outer(). 2024-01-10 13:51:36 -05:00
joinrels.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
pathkeys.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tidpath.c Update copyright for 2024 2024-01-03 20:49:05 -05:00