From: | "James Pang (chaolpan)" <chaolpan(at)cisco(dot)com> |
---|---|
To: | "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | extended statistics n-distinct on multiple columns not used when join two tables |
Date: | 2023-06-13 09:21:25 |
Message-ID: | PH0PR11MB519189611860A0F7FDE53509D655A@PH0PR11MB5191.namprd11.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Hi,
When join two table on multiple columns equaljoin, rows estimation always use selectivity = multiplied by distinct multiple individual columns, possible to use extended n-distinct statistics on multiple columns?
PG v14.8-1, attached please check test case with details.
Thanks,
James
Attachment | Content-Type | Size |
---|---|---|
test_join_selectivity_rows_estimation_join.txt | text/plain | 6.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2023-06-13 09:29:49 | Re: extended statistics n-distinct on multiple columns not used when join two tables |
Previous Message | Palle Girgensohn | 2023-06-13 09:20:52 | OK to build LLVM (*.bc) with CLANG but rest of postgresql with CC (other compiler)? |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2023-06-13 09:29:49 | Re: extended statistics n-distinct on multiple columns not used when join two tables |
Previous Message | Chris Hoover | 2023-06-13 00:09:53 | Re: Forced to use UNION ALL when having multiple ANY operators and ORDER BY LIMIT |