postgresql/src
Tom Lane 9f452feeeb Fix thinko in qual distribution.
deconstruct_distribute tweaks the outer join scope (ojscope)
it passes to distribute_qual_to_rels when considering an outer
join qual that's above potentially-commutable outer joins.
However, if the current join is *not* potentially commutable,
we shouldn't do that.  The argument that distribute_qual_to_rels
will not do something wrong with the bogus ojscope falls flat
if we don't pass it non-null postponed_oj_qual_list.  Moreover,
there's no need to play games in this case since we aren't going
to commute anything.

Per SQLSmith testing by Robins Tharakan.

Discussion: https://postgr.es/m/CAEP4nAw74k4b-=93gmfCNX3MOY3y4uPxqbk_MnCVEpdsqHJVsg@mail.gmail.com
2023-02-04 17:40:35 -05:00
..
backend Fix thinko in qual distribution. 2023-02-04 17:40:35 -05:00
bin Try to fix pg_upgrade test on Windows, again. 2023-02-01 14:40:25 +13:00
common Refactor rmtree() to use get_dirent_type(). 2023-01-31 13:46:25 +13:00
fe_utils Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
include Further refactor of heapgettup and heapgettup_pagemode 2023-02-03 11:48:39 +13:00
interfaces Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
makefiles Update copyright for 2023 2023-01-02 15:00:37 -05:00
pl Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
port Remove gratuitous references to postmaster program 2023-01-26 10:48:32 +01:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Fix thinko in qual distribution. 2023-02-04 17:40:35 -05:00
timezone Update time zone data files to tzdata release 2022g. 2023-01-31 17:36:55 -05:00
tools Document installing perltidy with cpanm 2023-02-02 08:54:38 -05:00
tutorial Update copyright for 2023 2023-01-02 15:00:37 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00