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 1l2mD8-0000bc-M4 for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Jan 2021 02:30:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2mD7-00016t-Ex for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Jan 2021 02:30:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2mD7-00016m-45 for pgsql-hackers@lists.postgresql.org; Fri, 22 Jan 2021 02:30:05 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l2mD4-0002bi-RW for pgsql-hackers@postgresql.org; Fri, 22 Jan 2021 02:30:04 +0000 Received: by mail-io1-xd36.google.com with SMTP id p72so8210451iod.12 for ; Thu, 21 Jan 2021 18:30:02 -0800 (PST) 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=hE1Y6MlX7sahY4Jmxf1GdemdtahcqLBCSvYg5kpBBaA=; b=Zre55YCEDRhb0YIo/BF/ztlBiN02wXQHkq9OTzTiYxN2B2eQnDrJclzIkCKi389v9H 3r3dy2PoVyl+r62F9kkTDmhF3ngT05DlGPq4a7TGlZ0kygFoOPt9iIpHiuRvxcqfck3t nuvEaqSDFHDul5ZMR2Mu9tNY6xiAKB97ygn/n6GS/50qE2HqZu8TH4opdqkw5lm+Ss3o xNl0AqipVFW0W+TN5wgfl146HtLlATgetvNSbTYNcLv/vFoPLoU3DEkeWQr1ROaE9oFU sFRo3i0EGAheraFMahNPVJk9eQemSZUMTa/oeW2otMFCRBXhG2CQsbY25llO7sKYme49 Y9nw== 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=hE1Y6MlX7sahY4Jmxf1GdemdtahcqLBCSvYg5kpBBaA=; b=sCgWo2AOx/SnHdM33hVdpoDwmwi+Gham8t4l3ILP1S0hHVCOmErUbB5Wdysfw7oulz 2VM9+AQG+kD36kdGr+uwWOCPPMhxJMv/kyLHBy4MrjrrbEXuc56nFCnVkvnvS9JIPeAD AJ+Crvs0BhtxiIyd//qnZLentTbCEuGjmaypYGN6oITtGm6gsAag6Ztdl9C9W2YL2PKf pX+PyJMOvsItKMdDS+fagLfXOWwfZbTC2Fb+S+8oHG8SMMWvY6W5FztnNQl+3DRK78fg moLQB9/BvRXglovit1KsAu2uv2pUfv30TFDvWG7cBe0lEyf9SGmEV489iHA0dAfbCqZ8 sKzg== X-Gm-Message-State: AOAM532lNv1vFtShgNrSIRMYy16MxjcUsi1TtRBcUL16ioJfVM1JihKf XMFbyuhH8gtu911CIDb4oAIKSg== X-Google-Smtp-Source: ABdhPJxFjedEvhMmdHoQtHbIvt3lxkm38mmhtTg7IdyLcLejQIA2UoAyeLbfvPh68927DRWlfBPEdg== X-Received: by 2002:a92:b646:: with SMTP id s67mr264578ili.178.1611282601191; Thu, 21 Jan 2021 18:30:01 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id l16sm4421876ilg.83.2021.01.21.18.30.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jan 2021 18:30:00 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 3967980090D; Thu, 21 Jan 2021 20:29:58 -0600 (CST) Date: Thu, 21 Jan 2021 20:29:58 -0600 From: Justin Pryzby To: Tomas Vondra Cc: Dean Rasheed , pgsql-hackers@postgresql.org Subject: Re: PoC/WIP: Extended statistics on expressions Message-ID: <20210122022958.GC27167@telsasoft.com> References: <20210108023537.GA19743@telsasoft.com> <5305f9cf-3927-06c4-cd5b-e46cbc58bc7f@enterprisedb.com> <20210116232208.GB8560@telsasoft.com> <2f2a3b3b-93e4-723f-144e-bc21f10d6b61@enterprisedb.com> <20210118045331.GF8560@telsasoft.com> <3f20da4d-89dc-0912-98d2-b6f0ef06c87f@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: Precedence: bulk This already needs to be rebased on 55dc86eca. And needs to update rules.out. And doesn't address this one: On Sun, Jan 17, 2021 at 10:53:31PM -0600, Justin Pryzby wrote: > | postgres=# CREATE TABLE t(i int); > | postgres=# CREATE STATISTICS s2 ON (i+1) ,(i+1+0) FROM t; > | postgres=# \d t > | Table "public.t" > | Column | Type | Collation | Nullable | Default > | --------+---------+-----------+----------+--------- > | i | integer | | | > | Indexes: > | "t_i_idx" btree (i) > | Statistics objects: > | "public"."s2" (ndistinct, dependencies, mcv) ON FROM t > > on ... what ? -- Justin