Re: [HACKERS] <> join selectivity estimate question
От
Tom Lane
Тема
Re: [HACKERS] <> join selectivity estimate question
Дата
Msg-id
25906.1489777890@sss.pgh.pa.us
Ответ на
Re: [HACKERS] <> join selectivity estimate question (Robert Haas)
Список
Дерево обсуждения
[HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] <> join selectivity estimate question Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] <> join selectivity estimate question Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] <> join selectivity estimate question Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] <> join selectivity estimate question Tom Lane <tgl@sss.pgh.pa.us>
Robert Haas writes: > On Fri, Mar 17, 2017 at 1:14 PM, Tom Lane wrote: >> It would not be too hard to convince me that neqjoinsel should >> simply return 1.0 for any semijoin/antijoin case, perhaps with >> some kind of discount for nullfrac. Whether or not there's an >> equal row, there's almost always going to be non-equal row(s). >> Maybe we can think of a better implementation but that seems >> like the zero-order approximation. > Yeah, it's not obvious how to do better than that considering only one > clause at a time. Of course, what we really want to know is > P(x<>y|z=t), but don't ask me how to compute that. Yeah. Another hole in this solution is that it means that the estimate for x <> y will be quite different from the estimate for NOT(x = y). You wouldn't notice it in the field unless somebody forgot to put a negator link on their equality operator, but it seems like ideally we'd think of a solution that made sense for generic NOT in this context. No, I have no idea how to do that. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: