Обсуждение: pgsql: Adjust estimate_num_groups() to not clamp per-relation group

Поиск
Список
Период
Сортировка

pgsql: Adjust estimate_num_groups() to not clamp per-relation group

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Adjust estimate_num_groups() to not clamp per-relation group count
estimate to less than the number of values estimated for any one grouping
Var, as suggested by Manfred.  This is intuitively right, and what's
more it puts the plan choices in the subselect regression test back the
way they were before ...

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        selfuncs.c (r1.170 -> r1.171)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/selfuncs.c.diff?r1=1.170&r2=1.171)
    pgsql/src/test/regress/expected:
        subselect.out (r1.11 -> r1.12)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/subselect.out.diff?r1=1.11&r2=1.12)