Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViPVc-000780-Hb for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Nov 2013 14:09:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1ViPVb-0001Wp-Jd for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Nov 2013 14:08:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViPVa-0001Wi-MN for pgsql-bugs@postgresql.org; Mon, 18 Nov 2013 14:08:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViPVX-0006nx-M8 for pgsql-bugs@postgresql.org; Mon, 18 Nov 2013 14:08:58 +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 rAIE8rvA009079; Mon, 18 Nov 2013 09:08:53 -0500 From: Tom Lane To: Marko Tiikkaja cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8598: Row count estimates of partial indexes In-reply-to: <5289E650.5070802@joh.to> References: <28474.1384705755@sss.pgh.pa.us> <52891F32.8010902@joh.to> <16493.1384719519@sss.pgh.pa.us> <5289E650.5070802@joh.to> Comments: In-reply-to Marko Tiikkaja message dated "Mon, 18 Nov 2013 11:05:04 +0100" Date: Mon, 18 Nov 2013 09:08:53 -0500 Message-ID: <9078.1384783733@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Marko Tiikkaja writes: > On 11/17/13 9:18 PM, Tom Lane wrote: >> The long-term answer as far as Postgres is concerned is to learn about >> cross-column correlations, but that's not happening in the near future. > I'm completely clueless about how the planner works, but wouldn't it be > easier to have some kind of separate stats for the conditions in partial > indexes? It seems better in all cases than trying infer the stats from > cross-column correlations, even if we had that. There's been some discussion of providing a way to hint to ANALYZE about which combinations of columns are worth gathering cross-column statistics for. But partial index predicates seem like a pretty bad mechanism for that. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs