Re: extended statistics n-distinct on multiple columns not used when join two tables - Mailing list pgsql-performance

From Pavel Stehule
Subject Re: extended statistics n-distinct on multiple columns not used when join two tables
Date
Msg-id CAFj8pRCNu82ZCb4tMg9sCrZSqiLob84zfv+y38M1F7XaJEJFZA@mail.gmail.com
Whole thread Raw
In response to extended statistics n-distinct on multiple columns not used when join two tables  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
List pgsql-performance
Hi

út 13. 6. 2023 v 11:21 odesílatel James Pang (chaolpan) <chaolpan@cisco.com> napsal:

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.


There is not any support for multi tables statistic

Regards

Pavel
 

 

Thanks,

 

James

      

pgsql-performance by date:

Previous
From: "James Pang (chaolpan)"
Date:
Subject: extended statistics n-distinct on multiple columns not used when join two tables
Next
From: Tom Lane
Date:
Subject: Re: Postgresql equal join on function with columns not use index