Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aM1Hs-00005I-Di for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2016 22:31:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aM1Hs-0007ZW-0s for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jan 2016 22:31:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aM1Hr-0007ZQ-Es for pgsql-hackers@postgresql.org; Wed, 20 Jan 2016 22:31:35 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aM1Hn-0007Dt-JO for pgsql-hackers@postgresql.org; Wed, 20 Jan 2016 22:31:35 +0000 Received: by mail-wm0-x233.google.com with SMTP id l65so197801148wmf.1 for ; Wed, 20 Jan 2016 14:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=7/iTB2ccinyqNJcgi+ZVXdIW3V8A5XdRXcxuQojAuIM=; b=ktwgq3M0ycpziiQF+03svJxVkvDyI3zJ/0knqvl4Yf1zJvAERVv3Igb8TEoyFUwjTA XxQjIRRr2Y3uoeRjBIhGlXHoEwts0CEJd9KOFHHJHiUYOeN76Igl1jW99f7IDjsS9Roc RjXYLITTiC/lkXTX0RO1GR2+5A2T6iU14c7jOTiL8kIsDGHx7G3SP0BoMnAQPZc2Bza4 +bQZuiQ/xNOE8k9dx9MHuf26aakj302yOyWQLxcQSWhCNv2vFU5QGesbaSWo+vwO655v Fsd+y8vI48pdrafO/pI4sraaEJIGQFJpbAX7Bgf5oGZgnHAY6L+zA4jxV+Mv89G4E9TM i50A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=7/iTB2ccinyqNJcgi+ZVXdIW3V8A5XdRXcxuQojAuIM=; b=iskdG2Axaqfk2594sEYZefSDTWC5k1Kc+wt9e9vbYUo7GBqGl61xahyhebto5MMgfO 8d0XxU4UUM5grOpYakmqq1BCIZ2GBUPZ+5AtVhfIeqb5a41gE5vUBD3EH8hpRV4ShS9w JEYvmWwAyB4zKFeNXsO292f5VBBG8dVvIcv8HWyjKyj/HDaQ/jpddJ1a3E9djoJ76xQl YE504onxQDR5CbwFW63MO2m2jb+i3wVrXCLZdXqQ8mqtSNBdBPDLM41D9jrHn53iXkh4 +3IboIkKfhgWV5vPz8M338WRiOxxSnuufDuRZDkuVe8etwoA3/AQTIRORiUjvn0jNjuH SXLQ== X-Gm-Message-State: ALoCoQk3qhFVSFUJuod85B/WNo8PgHbZFn1WosbLiOZN8mzIhGDxTjg61DjOCZI0Yfp2URHAkGytwGX8hSfTgy2nxyA5gmbPKB8iCeb3cWuoK6mrKrnr7oY7wdZ56a+IyH7I6f3hUD8lpog6GnmYRfw46PST7L1yS2cYYjbJsWUoooEGf6xG/8AuqowNfVd1Ha84uM0084ZAZM7uYtaGRfgAt1MSTtG+KA== X-Received: by 10.194.205.103 with SMTP id lf7mr37598203wjc.147.1453329089958; Wed, 20 Jan 2016 14:31:29 -0800 (PST) Received: from [10.137.1.13] (ip-78-45-216-26.net.upcbroadband.cz. [78.45.216.26]) by smtp.gmail.com with ESMTPSA id u191sm27096861wmd.4.2016.01.20.14.31.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2016 14:31:28 -0800 (PST) Subject: Re: multivariate statistics v8 To: Alvaro Herrera , Bruce Momjian References: <20160120215416.GA378214@alvherre.pgsql> Cc: Robert Haas , "pgsql-hackers@postgresql.org" From: Tomas Vondra Message-ID: <56A00ABD.9020207@2ndquadrant.com> Date: Wed, 20 Jan 2016 23:31:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20160120215416.GA378214@alvherre.pgsql> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 01/20/2016 10:54 PM, Alvaro Herrera wrote: > 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. It's also true that a significant fraction of the size is documentation (in the form of comments). However even after stripping them the patch is not exactly small ... I'm afraid it may be rather difficult to understand the general idea of the patch. So if anyone is interested in discussing the patch in Brussels next week, I'm available. Also, in December I've posted a link to a "paper" I started writing about the stats: https://bitbucket.org/tvondra/mvstats-paper/src regards -- Tomas Vondra 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