Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCXtK-0004EP-QW for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 19:51:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCXtK-0001DV-CT for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 19:51:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCXtI-0001Bt-Bz for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 19:51:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCXtF-0001Y6-K0 for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 19:51:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5DJpGw3001889; Mon, 13 Jun 2016 15:51:16 -0400 From: Tom Lane To: Simon Riggs cc: PostgreSQL-development Subject: Re: New design for FK-based join selectivity estimation In-reply-to: References: <31041.1465069446@sss.pgh.pa.us> <29764.1465841785@sss.pgh.pa.us> Comments: In-reply-to Simon Riggs message dated "Mon, 13 Jun 2016 19:52:06 +0100" Date: Mon, 13 Jun 2016 15:51:16 -0400 Message-ID: <1888.1465847476@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Simon Riggs writes: > On 13 June 2016 at 19:16, Tom Lane wrote: >> Another point here is that I'm now unconvinced that restricting the logic >> to consider only multi-column fkeys is really what we want. It looks to >> me like the code can also improve estimates in the case where there are >> multiple single-column FKs linking to the same target relation. That >> might not be too common for two-table queries, but I bet it happens a >> lot in three-or-more-table queries. > Is it realistic that we consider that at this point? Certainly not for > myself, at least. It's pretty much built into the redesign I proposed, or so I thought. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers