postgresql/src/include/optimizer
Tom Lane dfdf07aab1 Fix up LIMIT/OFFSET planning so that we cope with non-constant LIMIT
or OFFSET clauses by using estimate_expression_value().  The main advantage
of this is that if the expression is a Param and we have a value for the
Param, we'll use that value rather than defaulting.  Also, fix some
thinkos in the logic for combining LIMIT/OFFSET with an externally
supplied tuple fraction (this covers cases like EXISTS(...LIMIT...)).
And make sure the results of all this are shown by EXPLAIN.  Per a
gripe from Merlin Moncure.
2005-08-18 17:51:12 +00:00
..
clauses.h Teach the planner to remove SubqueryScan nodes from the plan if they 2005-05-22 22:30:20 +00:00
cost.h Simple constraint exclusion. For now, only child tables of inheritance 2005-07-23 21:05:48 +00:00
geqo_copy.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_gene.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_misc.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_mutation.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_pool.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_random.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_recombination.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo_selection.h Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
geqo.h Remove planner's private fields from Query struct, and put them into 2005-06-05 22:32:58 +00:00
joininfo.h Simplify the planner's join clause management by storing join clauses 2005-06-09 04:19:00 +00:00
pathnode.h Remove planner's private fields from Query struct, and put them into 2005-06-05 22:32:58 +00:00
paths.h Fix a bunch of bad interactions between partial indexes and the new 2005-07-28 20:26:22 +00:00
plancat.h Simple constraint exclusion. For now, only child tables of inheritance 2005-07-23 21:05:48 +00:00
planmain.h Fix up LIMIT/OFFSET planning so that we cope with non-constant LIMIT 2005-08-18 17:51:12 +00:00
planner.h Remove planner's private fields from Query struct, and put them into 2005-06-05 22:32:58 +00:00
predtest.h Simple constraint exclusion. For now, only child tables of inheritance 2005-07-23 21:05:48 +00:00
prep.h If a LIMIT is applied to a UNION ALL query, plan each UNION arm as 2005-06-10 02:21:05 +00:00
restrictinfo.h Fix a bunch of bad interactions between partial indexes and the new 2005-07-28 20:26:22 +00:00
subselect.h Remove planner's private fields from Query struct, and put them into 2005-06-05 22:32:58 +00:00
tlist.h Merge Resdom nodes into TargetEntry nodes to simplify code and save a 2005-04-06 16:34:07 +00:00
var.h Remove planner's private fields from Query struct, and put them into 2005-06-05 22:32:58 +00:00