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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 29f8f54) | patch
Consider unsorted paths in generate_useful_gather_paths
2020年12月21日 17:09:57 +0000 (18:09 +0100)
2020年12月21日 17:10:20 +0000 (18:10 +0100)
commit f4a3c0b06250ddc8ae09b59b87cf68e9bc0d7ca1
Consider unsorted paths in generate_useful_gather_paths

generate_useful_gather_paths used to skip unsorted paths (without any
pathkeys), but that is unnecessary - the later code actually can handle
such paths just fine by adding a Sort node. This is clearly a thinko,
preventing construction of useful plans.

Backpatch to 13, where Incremental Sort was introduced.

Author: James Coleman
Reviewed-by: Tomas Vondra
Backpatch-through: 13
Discussion: https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com
src/backend/optimizer/path/allpaths.c diff | blob | blame | history
src/test/regress/expected/incremental_sort.out diff | blob | blame | history
src/test/regress/sql/incremental_sort.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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