postgresql/src/include/optimizer
Robert Haas ccd8f97922 postgres_fdw: Consider requesting sorted data so we can do a merge join.
When use_remote_estimate is enabled, consider adding ORDER BY to the
query we sending to the remote server so that we can use that ordered
data for a merge join.  Commit f18c944b61
arranges to push down the query pathkeys, which seems like the case
mostly likely to be a win, but testing shows this can sometimes win,
too.

For a regular table, we know which indexes are present and therefore
test whether the ordering provided by each such index is useful.  Here,
we take the opposite approach: guess what orderings would be useful if
they could be generated cheaply, and then ask the remote side what those
will cost.

Ashutosh Bapat, with very substantial cosmetic revisions by me.  Also
reviewed by Rushabh Lathia.
2015-12-22 13:46:40 -05:00
..
clauses.h Generate parallel sequential scan plans in simple cases. 2015-11-11 09:02:52 -05:00
cost.h Make sequential scans parallel-aware. 2015-11-11 08:57:52 -05:00
geqo.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_copy.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_gene.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_misc.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_mutation.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_pool.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_random.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_recombination.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
geqo_selection.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
joininfo.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
orclauses.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
pathnode.h Still more fixes for planner's handling of LATERAL references. 2015-12-11 14:22:20 -05:00
paths.h postgres_fdw: Consider requesting sorted data so we can do a merge join. 2015-12-22 13:46:40 -05:00
placeholder.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
plancat.h Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. 2015-05-08 05:43:10 +02:00
planmain.h Allow foreign and custom joins to handle EvalPlanQual rechecks. 2015-12-08 12:31:03 -05:00
planner.h Allow foreign tables to participate in inheritance. 2015-03-22 13:53:21 -04:00
predtest.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
prep.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00
restrictinfo.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
subselect.h Postpone extParam/allParam calculations until the very end of planning. 2015-08-11 23:48:37 -04:00
tlist.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00
var.h Update copyright for 2015 2015-01-06 11:43:47 -05:00