Re: Regression in join selectivity estimations when using foreign keys
David Rowley <david.rowley@2ndquadrant.com>
From: David Rowley <david.rowley@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-06-20T22:13:18Z
Lists: pgsql-hackers
On 20 June 2017 at 07:49, Tom Lane <tgl@sss.pgh.pa.us> wrote: > I'm not totally satisfied that there isn't any case where the smallest > selectivity hack is appropriate. In the example you're showing here, > the FK columns are independent so that we get more or less the right > answer with or without the FK. But in some quick testing I could not > produce a counterexample proving that that heuristic is helpful; > so for now let's can it. > > Thanks, and sorry again for the delay. Many thanks for taking the time on this. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Commits
-
Avoid regressions in foreign-key-based selectivity estimates.
- d8e6b84bd2ac 10.0 landed
- 1f184426b763 9.6.4 landed