Re: BUG #15383: Join Filter cost estimation problem in 10.5 - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #15383: Join Filter cost estimation problem in 10.5
Date
Msg-id 20190905232014.GA32014@alvherre.pgsql
Whole thread Raw
In response to Re: BUG #15383: Join Filter cost estimation problem in 10.5  (David Rowley <david.rowley@2ndquadrant.com>)
Responses Re: BUG #15383: Join Filter cost estimation problem in 10.5
Re: BUG #15383: Join Filter cost estimation problem in 10.5
List pgsql-bugs
On 2019-Jul-01, David Rowley wrote:

> One thing we could look at would be to charge an additional
> cpu_tuple_cost per outer row for all joins except semi, anti and
> unique joins.  This would account for the additional lookup for
> another matching row which won't be found and cause the planner to
> slightly favour keeping the unique rel on the inner side of the join,
> when everything else is equal.

So does this proposal fix the problem that David was describing earlier?
If it does, Tom, would you like to get this finalized and pushed?

I've bcc'ed someone who might be interested in chiming in and/or helping
out.  Please look here:
https://postgr.es/m/153683552113.22350.18441286362867559841@wrigleys.postgresql.org

Thanks,

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: ERROR: multixact X from before cutoff Y found to be still running
Next
From: Ram Pratap Maurya
Date:
Subject: RE: BUG #15992: Index size larger than the base table size. Sometime3 times large