git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 50c4190) | patch
Teach planner how to propagate pathkeys from sub-SELECTs in FROM up to
2003年2月15日 20:12:41 +0000 (20:12 +0000)
2003年2月15日 20:12:41 +0000 (20:12 +0000)
commit 056467ec6bcbd81a9d1480af8d641946a5ef1bff
Teach planner how to propagate pathkeys from sub-SELECTs in FROM up to
the outer query. (The implementation is a bit klugy, but it would take
nontrivial restructuring to make it nicer, which this is probably not
worth.) This avoids unnecessary sort steps in examples like
SELECT foo,count(*) FROM (SELECT ... ORDER BY foo,bar) sub GROUP BY foo
which means there is now a reasonable technique for controlling the
order of inputs to custom aggregates, even in the grouping case.
src/backend/optimizer/path/allpaths.c diff | blob | blame | history
src/backend/optimizer/path/pathkeys.c diff | blob | blame | history
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/optimizer/util/pathnode.c diff | blob | blame | history
src/backend/optimizer/util/relnode.c diff | blob | blame | history
src/backend/optimizer/util/tlist.c diff | blob | blame | history
src/include/optimizer/pathnode.h diff | blob | blame | history
src/include/optimizer/paths.h diff | blob | blame | history
src/include/optimizer/tlist.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /