Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9DqS-0003hu-QA for pgsql-committers@arkaria.postgresql.org; Wed, 27 Mar 2019 19:04:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9DqQ-0006C5-GF for pgsql-committers@arkaria.postgresql.org; Wed, 27 Mar 2019 19:04:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9DqQ-00069j-4a for pgsql-committers@lists.postgresql.org; Wed, 27 Mar 2019 19:04:14 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9DqN-0000Gz-Gk for pgsql-committers@lists.postgresql.org; Wed, 27 Mar 2019 19:04:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 215504594; Wed, 27 Mar 2019 15:04:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 27 Mar 2019 15:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ctkCLowgAhc8E1cRH17zP1k3CKw IUwpxvM2TKBhqvBM=; b=bEKJqEqRuBx74bUvMIeeBBnSUWclttEa0WEq3EioJFM KwsM5elKSiNqvhBfFcc8/lREfUij3LmeebYPAu42uGd0lIJzj7OHAczX5U1JZV5A QL2mspoT+BK95/4eo2CtbZgn35YYgaYjOpNvGM2hKOMITBMDir9Z8s/l+Tj2tQ3S XOMJWr3d+uscoTLyJcqLlmoBRmQPM8iExacl9wFdrW/ojfr1uapTtoUGINQC5wJZ E5rh2XxkA62twbHXrnSIqK/OPJvcdwicIUDFG8wY5PL5Me2UPT6wZEkc87R1J2qx sT9KCjWnoxCtJW7vJNZqR9ehRWAi3FGReb4Sxcwu94Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ctkCLo wgAhc8E1cRH17zP1k3CKwIUwpxvM2TKBhqvBM=; b=tuv+VDGdwHpNcsbyvEvL3q C6asG//1HyVwMXRhR9seVrd89WSi3PC336FmQEsNHJ/bkqRc5iv/7RlJ7CiHEyFr cs4Hv9UINWVsyWkKGmqCnXz9/rcLgSFjgV3arxjK3IMP2VgE3Keo8UFZ9jS7byrB 6NaOihdpTSFxnq1ccCfxbVtqkYm9V91uaBDmGC86gftFKcMKjFasFmA1Lqd68Br4 4JvrNwdrKg9NUmp1Nq8AbqphQRQ3AxEGyILTBtBSPTyvIv/an2SIBXx3NTd/FZP5 5JUdgxa342K563CJ0pNBCbV5hzTUl4QVJheQfmcmaxdiF8Ohm+LLsCs8ZDYWGg/Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkedvgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucffohhmrg hinhepphhoshhtghhrrdgvshenucfkphepudejfedrleehrddujeejrdefkeenucfrrghr rghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggvnecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (cpe-173-95-177-38.nc.res.rr.com [173.95.177.38]) by mail.messagingengine.com (Postfix) with ESMTPA id CEC04E49E3; Wed, 27 Mar 2019 15:04:07 -0400 (EDT) Date: Wed, 27 Mar 2019 12:04:06 -0700 From: Andres Freund To: Tomas Vondra Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add support for multivariate MCV lists Message-ID: <20190327190406.3gmupkthnbx7lvho@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-03-27 19:02:01 +0000, Tomas Vondra wrote: > Add support for multivariate MCV lists > > Introduce a third extended statistic type, supported by the CREATE > STATISTICS command - MCV lists, a generalization of the statistic > already built and used for individual columns. > > Compared to the already supported types (n-distinct coefficients and > functional dependencies), MCV lists are more complex, include column > values and allow estimation of much wider range of common clauses > (equality and inequality conditions, IS NULL, IS NOT NULL etc.). > Similarly to the other types, a new pseudo-type (pg_mcv_list) is used. > > Author: Tomas Vondra > Reviewed-by: Dean Rasheed, David Rowley, Mark Dilger, Alvaro Herrera > Discussion: https://postgr.es/m/dfdac334-9cf2-2597-fb27-f0fb3753f435@2ndquadrant.com Congrats, this was long in the making! - Andres