1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-10 14:22:35 +03:00

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 ...
This commit is contained in:
Tom Lane
2005-02-01 23:08:13 +00:00
parent 48522fd30d
commit a3f945a1b2
2 changed files with 18 additions and 4 deletions

View File

@@ -134,11 +134,11 @@ SELECT '' AS five, f1 AS "Correlated Field"
WHERE f3 IS NOT NULL);
five | Correlated Field
------+------------------
| 2
| 3
| 1
| 2
| 3
| 2
| 2
(5 rows)
--