Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aM0hr-0006jJ-JO for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2016 21:54:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aM0hr-00031q-23 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2016 21:54:23 +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) (envelope-from ) id 1aM0hp-0002yE-Dc for pgsql-hackers@postgresql.org; Wed, 20 Jan 2016 21:54:21 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aM0hm-0005XC-Tl for pgsql-hackers@postgresql.org; Wed, 20 Jan 2016 21:54:20 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.53.52]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id DA99A40105C; Wed, 20 Jan 2016 13:54:17 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 495316BA; Wed, 20 Jan 2016 18:54:16 -0300 (CLT) Date: Wed, 20 Jan 2016 18:54:16 -0300 From: Alvaro Herrera To: Bruce Momjian Cc: Robert Haas , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: multivariate statistics v8 Message-ID: <20160120215416.GA378214@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160120213743.GA9092@momjian.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Bruce Momjian wrote: > On Wed, Jan 20, 2016 at 02:20:38PM -0500, Robert Haas wrote: > > On Wed, Dec 23, 2015 at 2:07 PM, Tomas Vondra > > wrote: > > > The remaining question is how unique the statistics name should be. > > > My initial plan was to make it unique within a table, but that of > > > course does not work well with the DROP STATISTICS (it'd have to > > > specify the table name also), and it'd also now work with statistics > > > on multiple tables (which is one of the reasons for abandoning ALTER > > > TABLE stuff). > > > > > > So I think it should be unique across tables. Statistics are hardly > > > a global object, so it should be unique within a schema. I thought > > > that simply using the schema of the table would work, but that of > > > course breaks with multiple tables in different schemas. So the only > > > solution seems to be explicit schema for statistics. > > > > That solution seems good to me. > > > > (with apologies for not having looked at the rest of this much at all) > > Woh, this will be an optimizer game-changer, from the user perspective! That is the intent. The patch is huge, though -- any reviewing help is welcome. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers