Tomas Vondra
2a307df1bb
Fix ndistinct estimates with system attributes
...
When estimating the number of groups using extended statistics, the code
was discarding information about system attributes. This led to strange
situation that
SELECT 1 FROM t GROUP BY ctid;
could have produced higher estimate (equal to pg_class.reltuples) than
SELECT 1 FROM t GROUP BY a, b, ctid;
with extended statistics on (a,b). Fixed by retaining information about
the system attribute.
Backpatch all the way to 10, where extended statistics were introduced.
Author: Tomas Vondra
Backpatch-through: 10
2021-03-26 22:44:01 +01:00
..
2020-12-25 10:42:03 -08:00
2018-04-26 14:47:16 -04:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2019-06-30 17:34:20 -07:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2019-07-26 11:59:00 -04:00
2018-01-02 23:30:12 -05:00
2018-02-22 11:34:53 -05:00
2020-06-04 16:42:08 -04:00
2020-06-04 16:42:08 -04:00
2018-10-03 09:14:09 +05:30
2018-03-15 11:41:42 -04:00
2018-01-02 23:30:12 -05:00
2018-02-28 18:33:45 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-05-16 14:56:52 -04:00
2019-11-07 11:23:00 -05:00
2018-03-01 11:37:46 -05:00
2020-09-30 15:40:23 -04:00
2021-03-18 11:24:42 +01:00
2020-04-07 20:50:02 -04:00
2018-01-02 23:30:12 -05:00
2018-08-27 09:34:35 +12:00
2018-06-17 16:15:11 -04:00
2017-09-05 14:52:55 -04:00
2019-11-07 11:23:00 -05:00
2018-06-11 11:15:28 -04:00
2018-02-19 12:07:44 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-05-28 23:53:43 -04:00
2018-06-30 12:25:49 -04:00
2020-12-21 13:11:29 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2020-08-15 16:16:15 -07:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-02-22 11:34:53 -05:00
2020-07-09 16:02:23 -04:00
2018-10-16 11:50:18 -04:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-06-17 16:15:11 -04:00
2021-01-05 11:48:45 +00:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2020-05-28 13:19:16 -04:00
2018-07-04 17:36:19 -07:00
2020-05-14 09:39:04 +05:30
2018-01-02 23:30:12 -05:00
2018-06-22 08:42:36 -04:00
2020-04-20 12:57:12 +02:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2020-01-12 14:37:00 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2019-07-18 16:45:03 -07:00
2018-09-12 19:43:44 +01:00
2018-01-02 23:30:12 -05:00
2019-03-20 17:23:26 -03:00
2019-11-04 09:20:33 +01:00
2021-01-25 13:03:11 -05:00
2021-03-26 22:44:01 +01:00
2020-06-01 14:41:32 +09:00
2020-11-10 22:51:56 -05:00
2018-01-02 23:30:12 -05:00
2020-04-27 12:21:04 -04:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-04-26 14:47:16 -04:00
2018-01-02 23:30:12 -05:00
2020-07-31 11:43:12 -04:00
2018-04-05 19:55:11 +03:00
2018-04-05 19:55:11 +03:00
2019-03-27 21:30:49 +13:00
2018-01-02 23:30:12 -05:00
2021-01-04 18:32:40 -05:00
2018-01-02 23:30:12 -05:00
2021-01-04 18:32:40 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2019-10-25 15:22:40 -04:00