Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyxjX-0006BZ-C5 for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 10:46:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyxjV-0001NN-Id for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 10:46:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyxjV-0001NE-6X for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 10:46:09 +0000 Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyxjO-0000vN-2f for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 10:46:07 +0000 Received: by mail-oi0-x233.google.com with SMTP id c3-v6so6914304oib.5 for ; Thu, 22 Mar 2018 03:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=e3kIFoYzDW8+xFdSzSrtj0wUhv3zcvphSC3+m1mILhA=; b=ftpBcipMHCOSXRCYJB98lNbaZ7YCgZymCxi9BzBIecP8Ffd+yEMN+eQO/3LIveunkD 1fSbMpWRRD3tDE+t5p8QcSOzDtV7/Atbjntq3mDNvVPpZ2sXqEpk69gMPUQHv9Z1gvUA BUdd3yAjPRfP04QSC8WXcz0GOeo2hpUx33Xry7wWtfb+16hvPsZ/y0CuTxNPn2zzJOUP 9gpiQEuIHlt4+Fb9Hak/XRyc1wv7UnuTh4JhCBqmdKd0pfSpugA/iV6elIguDGP3bRMw YUSMqbctzb56gTLED6QtWZpG0h6WrMiV9Qi8wuhpXFd2qfUWBbS+TBPpia3134Qf4qSI 3CzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=e3kIFoYzDW8+xFdSzSrtj0wUhv3zcvphSC3+m1mILhA=; b=JdyHj8vmnvGxdqoicZOWumrqpvaMkbwnZYRmfbUodTtwpgV7LTXl5h23QlbfISNHJz 1aPr77umjNKMAdo4zpK5sCK4BlN1bqpUMbk4S8XHItpcVQu2TrgOvrmZxl1UiuEvqASL 3+WntOkhQ4BARNBjxkU6HSVH3k/51SQfoLctMZudlX3HMdHpl73X76GR59oY6jHVsIDj 6p2t0hEbtQq1crpTeYAa3NPqS68pfkmI12nroBYCiagndvleKQQXi4jI4XVue9Hhb1yj GydbPzSwrtYuEkN5mILLToi3J4TWEmpD6WEJD5tu1gCE5BIUkW+1aS+UIr0QkPl77Gom INww== X-Gm-Message-State: AElRT7Fb4tjIsdw/DgihoMSsUKvaIugFoLq7uKTA6Euakr14KD6RkGRG MYaTIfrtsXLWs4+bhmz0y8NSEp5dPmlVvLdIbciMxw== X-Google-Smtp-Source: AG47ELtRbt+PAMt6y57vvost2iSr/KX82zEvqGAFN1oJcic5XFBDsHnrJw/RbDeiaiAUwPW+aSafjIAUFV5Q3+uGOAI= X-Received: by 10.202.88.135 with SMTP id m129mr12908191oib.106.1521715560519; Thu, 22 Mar 2018 03:46:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.179.68 with HTTP; Thu, 22 Mar 2018 03:45:59 -0700 (PDT) In-Reply-To: References: From: Simon Riggs Date: Thu, 22 Mar 2018 10:45:59 +0000 Message-ID: Subject: Re: pgsql: Improve ANALYZE's strategy for finding MCVs. To: Dean Rasheed Cc: pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 22 March 2018 at 09:42, Dean Rasheed wrote: > Improve ANALYZE's strategy for finding MCVs. > Thus it tends to produce > fewer MCVs than the previous code for uniform distributions, and more > for non-uniform distributions, reducing estimation errors in both > cases. In addition, the algorithm responds better to increasing the > statistics target, allowing more values to be included in the MCV list > when more of the table is sampled. > > Jeff Janes, substantially modified by me. Reviewed by John Naylor and > Tomas Vondra. git praise --all -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services