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.92) (envelope-from ) id 1jEXw8-0007vS-N4 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 12:36:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEXw5-0006pc-2V for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 12:36:37 +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 1jEXw4-0006pU-JA for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 12:36:36 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEXw1-0005Tn-Ds for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 12:36:35 +0000 Received: by mail-wr1-x434.google.com with SMTP id h4so9566853wru.2 for ; Wed, 18 Mar 2020 05:36:33 -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; bh=seEyIMuED6wEndOGu75brxjtGb5vT8nFNJOXKlUxu/Y=; b=DOATdVXJgX8/scFl/WzsO0018JDDc4lSt7mIw2pL+5lCNYKGhv01uf7mPGojAO6uMw rnijjHJRhc4X4+lXPBJmVAVmOolTLTQ9Dl1jKhVJzS9XCdHpHnZywZ8XqL8BlFHYYUln eBL4AFyzVOaY+l/xzFGfZxY4i5d8Odl/JHJYJ5yo54dRGAI0s6sQ/fPe0o7S1Cr9482X UzgQ7hHF5EDXGOHrP7QRib/EUDM4jag5Fj5CSoFAMaMipoDRPm6CLNYu1q6Y+Cy0XM2w 7/Jip6yCSSC3jRCFGoSC8qD7F7QbO8YLSA+KTGw1enkFf9SLRJleCUnwkIasPI8wU2dZ 2dMQ== 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; bh=seEyIMuED6wEndOGu75brxjtGb5vT8nFNJOXKlUxu/Y=; b=MCjdGlOrxrbFTtNax9Ta5ndhiJ+EwUXnQ0AlGDE+fteBvHYwb7FhWjZ8PCblqoQ0eO yU8u/HccFfqegef9ECmRUWnkxWOvFVLuopjYmoXMNojUwfPR6J5OAzxyNsHUki8TVem3 2WCbfF7rnSjBopg7w24s/hwb09ZFG0eyNVGK5GT2GVvn9XBukNtF5/Dueew+rZlW+wUu jDPJKtjL3/bubKE6/E+vluGpNEPTAX3ETb5a9dSyTd7Lw0zMGikZT46OhRes4wb4XCxZ 5igQduJ4hCCNkiBuJFSgw200NiZZBQLL/axujLnbuPQxuYDhTOLKCsj3W1v4JyGrEJRE aglg== X-Gm-Message-State: ANhLgQ0yFCODUwj6Hgptc12U0NmI9pJE0vAi9xEQ1rzjgnISbKwMVy7d faLlTRqJlq1Q0DrM74RhcXntPw== X-Google-Smtp-Source: ADFU+vt+rrYtttvfxsaDkP3t+xp5zU4uxsooXlu5OAzacKSjpNZ8BOrk+67wJnorgBZxzVQRUx3w7w== X-Received: by 2002:adf:ab1d:: with SMTP id q29mr5154292wrc.233.1584534991618; Wed, 18 Mar 2020 05:36:31 -0700 (PDT) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id o10sm9288627wru.38.2020.03.18.05.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 05:36:30 -0700 (PDT) Date: Wed, 18 Mar 2020 13:36:29 +0100 From: Tomas Vondra To: "Shinoda, Noriyoshi (PN Japan A&PS Delivery)" Cc: Alvaro Herrera , Thomas Munro , "Jamison, Kirk" , Dean Rasheed , PostgreSQL Hackers Subject: Re: Multivariate MCV list vs. statistics target Message-ID: <20200318123629.3zfreiiaear7354x@development> References: <20190801103010.hzy6kw53qm2bkr5a@development> <20190903183855.GA20601@alvherre.pgsql> <20190910222812.3o5kyf7ghie34gg2@development> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="snwak6kifxvoyume" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --snwak6kifxvoyume Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Hi, On Wed, Mar 18, 2020 at 04:28:34AM +0000, Shinoda, Noriyoshi (PN Japan A&PS Delivery) wrote: >Hello, > >I found a missing column description in the pg_statistic_ext catalog document for this new feature. >The attached patch adds a description of the 'stxstattarget' column to pg_statistic_ext catalog's document. >If there is a better explanation, please correct it. > Thanks for the report. Yes, this is clearly an omission. I think it would be better to use wording similar to attstattarget, per the attached patch. That is, without reference to ALTER STATISTICS and better explaination of what positive/negative values do. Do you agree? regards >Regards, >Noriyoshi Shinoda > >-----Original Message----- >From: Tomas Vondra [mailto:tomas.vondra@2ndquadrant.com] >Sent: Wednesday, September 11, 2019 7:28 AM >To: Alvaro Herrera >Cc: Thomas Munro ; Jamison, Kirk ; Dean Rasheed ; PostgreSQL Hackers >Subject: Re: Multivariate MCV list vs. statistics target > >On Tue, Sep 03, 2019 at 02:38:56PM -0400, Alvaro Herrera wrote: >>On 2019-Aug-01, Tomas Vondra wrote: >> >>> I'll move it to the next CF. Aside from the issues pointed by >>> Kyotaro-san in his review, I still haven't made my mind about whether >>> to base the use statistics targets set for the attributes. That's >>> what we're doing now, but I'm not sure it's a good idea after adding separate statistics target. >>> I wonder what Dean's opinion on this is, as he added the current logic. >> >>Latest patch no longer applies. Please update. And since you already >>seem to have handled all review comments since it was Ready for >>Committer, and you now know Dean's opinion on the remaining question, >>please get it pushed. >> > >OK, I've pushed this the patch, after some minor polishing. > > >regards > >-- >Tomas Vondra http://www.2ndQuadrant.com >PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services > > > -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --snwak6kifxvoyume Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pg_statistic_ext_doc_v2.diff" diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index c6f95fa688..64614b569c 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -6452,6 +6452,22 @@ SCRAM-SHA-256$<iteration count>:&l Owner of the statistics object + + stxstattarget + int4 + + + stxstattarget controls the level of detail + of statistics accumulated for this statistics object by + . + A zero value indicates that no statistics should be collected. + A negative value says to use the system default statistics target. + Positive values stxstattarget + determine the target number of most common values + to collect. + + + stxkeys int2vector --snwak6kifxvoyume--