From 77ba610805e7ef9ba9c9a593ea8b1ca8f98f8bcb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 7 Jun 2016 17:21:17 -0400 Subject: Revert "Use Foreign Key relationships to infer multi-column join selectivity". This commit reverts 137805f89 as well as the associated commits 015e88942, 5306df283, and 68d704edb. We found multiple bugs in this feature, and there was concern about possible planner slowdown (though to be fair, exhibiting a very large slowdown proved difficult). The way forward requires a considerable rewrite, which may or may not be possible to accomplish in time for beta2. In my judgment reviewing the rewrite will be easier to accomplish starting from a clean slate, so let's temporarily revert what's there now. This also leaves us in a safe state if it turns out to be necessary to postpone the rewrite to the next development cycle. Discussion: <20160429102531.GA13701@huehner.biz> --- src/backend/utils/misc/guc.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/backend/utils/misc/guc.c') diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index e246a9c2f0b..edfa39adf4a 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -877,15 +877,6 @@ static struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, - { - {"enable_fkey_estimates", PGC_USERSET, QUERY_TUNING_METHOD, - gettext_noop("Enables use of foreign keys for estimating joins."), - NULL - }, - &enable_fkey_estimates, - true, - NULL, NULL, NULL - }, { {"geqo", PGC_USERSET, QUERY_TUNING_GEQO, -- cgit v1.2.3