postgresql/src/backend
David Rowley 99c5852e20 Add missing NULL check when building Result Cache paths
Code added in 9e215378d to disable building of Result Cache paths when
not all join conditions are part of the parameterization of a unique
join failed to first check if the inner path's param_info was set before
checking the param_info's ppi_clauses.

Add a check for NULL values here and just bail on trying to build the
path if param_info is NULL. lateral_vars are not considered when
deciding if the join is unique, so we're not missing out on doing the
optimization when there are lateral_vars and no param_info.

Reported-by: Coverity, via Tom Lane
Discussion: https://postgr.es/m/457998.1621779290@sss.pgh.pa.us
2021-05-24 12:37:11 +12:00
..
access Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
bootstrap Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
catalog Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
commands Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
executor Fix planner's use of Result Cache with unique joins 2021-05-22 16:22:27 +12:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
lib Fix typo in comment 2021-04-20 14:35:16 +02:00
libpq Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Fix mishandling of resjunk columns in ON CONFLICT ... UPDATE tlists. 2021-05-10 11:02:29 -04:00
optimizer Add missing NULL check when building Result Cache paths 2021-05-24 12:37:11 +12:00
parser Allow compute_query_id to be set to 'auto' and make it default 2021-05-15 14:13:09 -04:00
partitioning Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
po Translation updates 2021-05-17 14:30:27 +02:00
port Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
postmaster Be more verbose when the postmaster unexpectedly quits. 2021-05-23 10:50:21 -04:00
regex Fix performance issue in new regex match-all detection code. 2021-05-03 11:42:31 -04:00
replication Fix access to no-longer-open relcache entry in logical-rep worker. 2021-05-22 21:25:29 -04:00
rewrite Remove unused function argument 2021-05-03 09:05:58 +02:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
storage Fix typo and outdated information in README.barrier 2021-05-18 09:54:56 +12:00
tcop Restore the portal-level snapshot after procedure COMMIT/ROLLBACK. 2021-05-21 14:03:59 -04:00
tsearch Fix typos and grammar in comments and docs 2021-04-19 11:32:30 +09:00
utils Restore the portal-level snapshot after procedure COMMIT/ROLLBACK. 2021-05-21 14:03:59 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00