Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lP79D-0003bC-EW for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 17:18:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lP79C-0005OG-DF for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 17:18:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lP79C-0005O8-6J for pgsql-hackers@lists.postgresql.org; Wed, 24 Mar 2021 17:18:22 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lP798-0007go-Kb for pgsql-hackers@postgresql.org; Wed, 24 Mar 2021 17:18:21 +0000 Received: by mail-io1-xd2d.google.com with SMTP id x17so11030778iog.2 for ; Wed, 24 Mar 2021 10:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-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=OToMFa9b99Wd2CLJFprJ9LS3DerTOcBPSPH7w4KGbqs=; b=1mGInDJ4xZRMt6nskQsSFKqeG4avpiVThAVVHL9Q3cBmmBtUW1qAm07reEBgCC9Wmh oZjaobNaFVhE0zHO+5zmcLvWcfiD8wJ59DwCgSSkNlFlHcaWshjcD+EYwliGWDb6mPJZ wfMSnxXxYhEmnEReX8DDJORu0+QuWYkp6Yu6mjc59G6CmMq09i6QjJLWHrCu6Rrp4PUI qkkHcmpst9yBn4WmhEcM3vzEV8xQixnJ0I8uNunnDD+ngKW21PT7kEXnC+xf71CzLdnn /edr6EtvbnodQa7zCq+WDrVPyPmSWV8qvy3c3rCVkKYbHp+xqAW9ruTrrwdBdbIOiQFD bf+A== 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=OToMFa9b99Wd2CLJFprJ9LS3DerTOcBPSPH7w4KGbqs=; b=V6+ltTO8rsXy02PkgpQ1Af1jYVOfJHRhxdUqzf8d0YLKj3HrSrzMBTgPTsZCPkuESb pTYmavqqPMT2i+F7MIj4zGXcK4ngv2oM4duutdsY/FHkmrU2T8HqcHxbkxJPHlp0bokB oMRgZMGpiiGYoNfjsGQt5rcyBjWuUPK6l5gAV1z/rfiqQ934/9IPX4PKfVbitGJiJT5+ ytE2WWrS/9suT4robT6G7d+BFpMg2ePdgVXN6HErxJ4+0wbHQPY+oGXxf0juMGbEjR72 m6vIi7RzfmUnxsmfUDq1Ay6UOMVvgzE2Qw5QQwmqvn9Y7TWb4kTo/dOjnjoXIcd91+Ly Jazg== X-Gm-Message-State: AOAM532R8WkNymEheZpf+eKckhesS3ztPvHmM8ZscjX3aJGIz08XgSB3 iuRmDOK0137yhZ1KzxA0LdOcWQ== X-Google-Smtp-Source: ABdhPJxbUn/OAXO1AVVD3AasPQVeJ6YBicUg12sAx0LE6DJJoPkd7WTxCXK7kp02eBuK5YzE5THrvg== X-Received: by 2002:a5d:8046:: with SMTP id b6mr3364707ior.188.1616606297704; Wed, 24 Mar 2021 10:18:17 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id h2sm1310517ioj.30.2021.03.24.10.18.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Mar 2021 10:18:17 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 66174800A3C; Wed, 24 Mar 2021 12:18:16 -0500 (CDT) Date: Wed, 24 Mar 2021 12:18:16 -0500 From: Justin Pryzby To: Dean Rasheed Cc: Tomas Vondra , pgsql-hackers@postgresql.org Subject: Re: PoC/WIP: Extended statistics on expressions Message-ID: <20210324171816.GC15100@telsasoft.com> References: <9f6654b1-ca31-f979-0fe8-137683818273@enterprisedb.com> <20210324081402.GB28335@telsasoft.com> <20210324091708.GC28335@telsasoft.com> <1ff3fc47-8f6e-7839-c3ff-6b694956f92e@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 24, 2021 at 05:15:46PM +0000, Dean Rasheed wrote: > On Wed, 24 Mar 2021 at 16:48, Tomas Vondra > wrote: > > > > As for the changes proposed in the create_statistics, do we really want > > to use univariate / multivariate there? Yes, the terms are correct, but > > I'm not sure how many people looking at CREATE STATISTICS will > > understand them. > > > > Hmm, I think "univariate" and "multivariate" are pretty ubiquitous, > when used to describe statistics. You could use "single-column" and > "multi-column", but then "column" isn't really right anymore, since it > might be a column or an expression. I can't think of any other terms > that fit. We already use "multivariate", just not in create-statistics.sgml doc/src/sgml/perform.sgml: multivariate statistics, which can capture doc/src/sgml/perform.sgml: it's impractical to compute multivariate statistics automatically. doc/src/sgml/planstats.sgml: doc/src/sgml/planstats.sgml: multivariate doc/src/sgml/planstats.sgml: multivariate statistics on the two columns: doc/src/sgml/planstats.sgml: doc/src/sgml/planstats.sgml: But without multivariate statistics, the estimate for the number of doc/src/sgml/planstats.sgml: This section introduces multivariate variant of MCV doc/src/sgml/ref/create_statistics.sgml: and . doc/src/sgml/release-13.sgml:2020-01-13 [eae056c19] Apply multiple multivariate MCV lists when possible So I think the answer is for create-statistics to expose that word in a user-facing way in its reference to multivariate-statistics-examples. -- Justin