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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8a695d7) | patch
Improve statistics estimation for single-column GROUP BY in sub-queries
2025年2月19日 09:56:54 +0000 (11:56 +0200)
2025年2月19日 09:59:30 +0000 (11:59 +0200)
commit e983ee9380fcac746f9b6b7c360d255d9fcd0907
Improve statistics estimation for single-column GROUP BY in sub-queries

This commit follows the idea of the 4767bc8ff2. If sub-query has only one
GROUP BY column, we can consider its output variable as being unique. We can
employ this fact in the statistics to make more precise estimations in the
upper query block.

Author: Andrei Lepikhov <lepihov@gmail.com>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
src/backend/utils/adt/selfuncs.c diff | blob | blame | history
src/include/utils/selfuncs.h diff | blob | blame | history
src/test/regress/expected/stats_ext.out diff | blob | blame | history
src/test/regress/sql/stats_ext.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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