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 1h9RNC-0006dr-EE for pgsql-committers@arkaria.postgresql.org; Thu, 28 Mar 2019 09:30:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9RNB-0002bb-2M for pgsql-committers@arkaria.postgresql.org; Thu, 28 Mar 2019 09:30:57 +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 1h9RNA-0002TE-Gj for pgsql-committers@lists.postgresql.org; Thu, 28 Mar 2019 09:30:56 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9RN4-0003Hb-Ub for pgsql-committers@lists.postgresql.org; Thu, 28 Mar 2019 09:30:55 +0000 Received: by mail-wr1-x442.google.com with SMTP id t17so1191569wrw.13 for ; Thu, 28 Mar 2019 02:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GV2Cy94zZ0eW7rDn32EGzB4KE3N6nMMHFADvTYlQ1OM=; b=e6zpS5zxoC5D2U80CXHnjQJhqg8YjYIDtLTny900W4PlKhDgP8kVhsTSdApMtE5JSG qAqB5vkIA6rApjrwqU7BKi7ps1e6xqY3C6klj5Ugu81HyskZ38k98/9haIFESxuHXlew XDN7D2aIU1OXijNC7d573Yy+1nN+Oqtb6FJPePn0uRjaOhA6j4tUqesjqsKKjVctB/vi WGiJjdhP0IajXushOhtT2bzinBSO+d6bwFlVjVr2v8SSVC+ME3DDHL8Rx42T2bhTIN/1 KIsFOB4Ma1O4dVapcqR5tvIvzACI3LJ0+fQQhuzModOiDfFvNVJcd9WJeq79toAdy8Zx D2aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GV2Cy94zZ0eW7rDn32EGzB4KE3N6nMMHFADvTYlQ1OM=; b=CkJqgU1dJbmrMViqQCTEtZQ3vNUQ5U1IWlGmDPUG4y7iSAdF0kNUO5W9vHtlREgoi+ 3elkC+EntwFvPhJvuxVHjAN/yOXIna/xVlcR9nrsIV5hXO9yOCiIPeUqftSp/QTlsxYl LQM21VTZWaM8Zl+GNkKH6lkLHDo62VT9aRDjNufiWMndt1/+NsiEuBVDALth+ZR7/PnL 5PpNh7VnOh2+FhVVHnnUgD4oLjzhWslKbjt/DqJjoo2hLWk88P2m7AO53aq7eykNkAnp tv0jvW3O0Yw+heEgs+Lm6niSsLtiBHaioyqSKEgW5PdVryZUCrKatP99KkhDurbT/cbQ /U+A== X-Gm-Message-State: APjAAAWAcVbP/oKk7vYf4vwgm4tgU/nM+9QAWHSeSAVedZX53mElgTK6 gfr/g04NcywLX5QC9RywdkXIVw== X-Google-Smtp-Source: APXvYqxSF/dzn9S9QmgrQ7+7XWxmN6EQVsIVHllQr5oK6elEd0eJJT64QffiBbfC6XzFFKKmXrda1w== X-Received: by 2002:a5d:46c9:: with SMTP id g9mr25427761wrs.211.1553765449198; Thu, 28 Mar 2019 02:30:49 -0700 (PDT) Received: from localhost (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id r196sm2994498wmf.22.2019.03.28.02.30.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 28 Mar 2019 02:30:48 -0700 (PDT) Date: Thu, 28 Mar 2019 10:30:46 +0100 From: Tomas Vondra To: Andres Freund Cc: Peter Geoghegan , Tomas Vondra , pgsql-committers Subject: Re: pgsql: Add support for multivariate MCV lists Message-ID: <20190328093046.GF4406@development> References: <20190327190406.3gmupkthnbx7lvho@alap3.anarazel.de> <20190327201346.GB21957@development> <20190328031535.k36q5l5t3nnth5ey@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190328031535.k36q5l5t3nnth5ey@alap3.anarazel.de> User-Agent: Mutt/1.11.4+135 (aae3e555) (2019-03-21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Mar 27, 2019 at 08:15:35PM -0700, Andres Freund wrote: >Hi, > >On 2019-03-27 21:13:46 +0100, Tomas Vondra wrote: >> On Wed, Mar 27, 2019 at 12:32:34PM -0700, Peter Geoghegan wrote: >> > On Wed, Mar 27, 2019 at 12:04 PM Andres Freund wrote: >> > > Congrats, this was long in the making! >> > >> > +1 >> > >> >> Thanks! I guess it's a Gordie Howe of our patches. > >Btw, do you have plans to work on using more of this information during >join planning? Or at least an estimate of how much work that'd be? > Yes, I'd like to use more of this info in join estimation. I don't have an exact plan how to do that - so if anyone has ideas regarding this, I'd love to hear them. An obvious option is to add statistics covering multiple tables (the syntax is already designed with that in mind). But I have a feeling there are things we can do without that, e.g. using multivariate MCV lists in eqjoinsel roughly the same way we use per-column MCV lists, etc. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services