postgresql/src/backend/optimizer/util
Tom Lane edca44b152 Simplify LATERAL-related calculations within add_paths_to_joinrel().
While convincing myself that commit 7e19db0c09 would solve both of
the problems recently reported by Andreas Seltenreich, I realized that
add_paths_to_joinrel's handling of LATERAL restrictions could be made
noticeably simpler and faster if we were to retain the minimum possible
parameterization for each joinrel (that is, the set of relids supplying
unsatisfied lateral references in it).  We already retain that for
baserels, in RelOptInfo.lateral_relids, so we can use that field for
joinrels too.

I re-pgindent'd the files touched here, which affects some unrelated
comments.

This is, I believe, just a minor optimization not a bug fix, so no
back-patch.
2015-12-07 18:56:17 -05:00
..
clauses.c Generate parallel sequential scan plans in simple cases. 2015-11-11 09:02:52 -05:00
joininfo.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Extract restriction OR clauses whether or not they are indexable. 2013-12-30 12:24:37 -05:00
orclauses.c Improve planner's cost estimation in the presence of semijoins. 2015-03-11 21:21:00 -04:00
pathnode.c Make sequential scans parallel-aware. 2015-11-11 08:57:52 -05:00
placeholder.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
plancat.c Check the relevant index element in ON CONFLICT unique index inference. 2015-07-26 18:20:41 +02:00
predtest.c Teach predtest.c that "foo" implies "foo IS NOT NULL". 2015-08-01 14:31:46 -04:00
relnode.c Simplify LATERAL-related calculations within add_paths_to_joinrel(). 2015-12-07 18:56:17 -05:00
restrictinfo.c Remove an unsafe Assert, and explain join_clause_is_movable_into() better. 2015-07-28 13:20:39 -04:00
tlist.c Support GROUPING SETS, CUBE and ROLLUP. 2015-05-16 03:46:31 +02:00
var.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00