Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dt6hS-0003rn-Hr for pgsql-performance@arkaria.postgresql.org; Sat, 16 Sep 2017 06:35:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsylq-000765-Q5 for pgsql-performance@arkaria.postgresql.org; Fri, 15 Sep 2017 22:07:34 +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 1dsyk4-0003wm-0l for pgsql-performance@postgresql.org; Fri, 15 Sep 2017 22:05:44 +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 1dsyjv-0007vM-Vu for pgsql-performance@postgresql.org; Fri, 15 Sep 2017 22:05:41 +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 v8FM5VMw009415; Fri, 15 Sep 2017 18:05:31 -0400 From: Tom Lane To: Andres Freund cc: pgsql-performance@postgresql.org, Mike Broers , David Rowley Subject: Re: query of partitioned object doesnt use index in qa In-reply-to: <862584A2-724B-4F5A-976F-6164AE61BBE5@anarazel.de> References: <3138.1505508143@sss.pgh.pa.us> <862584A2-724B-4F5A-976F-6164AE61BBE5@anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 15 Sep 2017 14:03:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9413.1505513131.1@sss.pgh.pa.us> Date: Fri, 15 Sep 2017 18:05:31 -0400 Message-ID: <9414.1505513131@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Andres Freund writes: > I'm wondering if we should extend the new CREATE STATISTICS framework to > be able to do that without requiring an index. I think that's already on the roadmap --- it's one of the reasons we ended up with a SELECT-like syntax for CREATE STATISTICS. But it didn't get done for v10. If we do look at that as a substitute for "make an expression index just so you get some stats", it would be good to have a way to specify that you only want the standard ANALYZE stats on that value and not the extended ones. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance