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

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Adjust estimate_num_groups() to not clamp per-relation group
Date
Msg-id 20050201230906.439448B9B6C@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
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 ...

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        selfuncs.c (r1.169.4.1 -> r1.169.4.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/selfuncs.c.diff?r1=1.169.4.1&r2=1.169.4.2)
    pgsql/src/test/regress/expected:
        subselect.out (r1.10.4.1 -> r1.10.4.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/subselect.out.diff?r1=1.10.4.1&r2=1.10.4.2)

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Adjust estimate_num_groups() to not clamp per-relation group
Next
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix a bug induced by the list-rewrite that resulted in