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 1lZEEe-0005Ma-Rz for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 14:53:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZEEd-0006pM-G2 for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 14:53:47 +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 1lZEEd-0006pF-4V for pgsql-hackers@lists.postgresql.org; Wed, 21 Apr 2021 14:53:47 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lZEEY-0007D6-AH for pgsql-hackers@postgresql.org; Wed, 21 Apr 2021 14:53:46 +0000 Received: by mail-oi1-x235.google.com with SMTP id r186so14866716oif.8 for ; Wed, 21 Apr 2021 07:53:41 -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=FMOJ0GGLqZhculghtN/ebqP+Yipm913ooMRq2Ui4/nQ=; b=FSWL9uNhXq3wjsyp3+cFCGaU4HPIuD19fKo4V/BCWCjcNqGKBQy9TiqcV1YaB/KihX iv3PPkzTbzIFky8Ps2WEhidcRU4qGFUODCHeTta78ExrtstPnBZFjyypm2nyYmuZk8Pa yNsKCvtt43Q7zcSWvkRkjScaTpXyUv3E/uUdTxA62RvMyEpYQwKSJZM2y3/voiZcAvAX 3uGuSRUiEgS0V2jSfRpA9Ht5+BwgcoLKPXQlj7dfaSIGHwHGon9rL/wfL2sgpAoxnk6A bXV1i9pWGMFH4dMX2e+uOIzW/GMa15OdWdhACIje9jJDaBJ8AwAZOHuFFlw3cTmn1hjb 5SMg== 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=FMOJ0GGLqZhculghtN/ebqP+Yipm913ooMRq2Ui4/nQ=; b=AAZetsFoecGMyf52dIeWIABPUAd0U3jO//hnOles91qqavg4T3vclv3b3DdIf1Ale8 2+lJwQ+KicddbQnjEeTzJKSoIwG+fBnnP+QjeQxx626ckDFSpnl8BmW+Ua0mDuDV0nJ6 P7vxoQAJw76ajfyRFfuUpfrxfJpxE2SnzjJ64J0f8vJEivZ2L3tNUIxg2Z6lN4W2ha79 HHBh3P7YmehB6j/FIyf1bgTttH6NJ8Q5EqSb+8jcz7cF+PS9ocqbRuluoWEFX0cqhuMU H0Sn9HaQ9R63mnhr6H0L07FNQY+pPJeODD5aFgRgOkdYASN+A7T8eoFNNgE+4x2k4zT0 qUIA== X-Gm-Message-State: AOAM533+4lhONYzZeduLd8e5vEM/65p8F1Rc7D2LDuGXLnybdCdwnxHz z6AHT83OZGdDyVaYC3380fnJ8A== X-Google-Smtp-Source: ABdhPJwvjdn44c3J8/Lk5AVnX62DPdeJ/Vzax2viCz7Gt5m74TN4AL5qtI4gxvUXXUThpykhMyAK4A== X-Received: by 2002:a54:4f8f:: with SMTP id g15mr6829397oiy.12.1619016820656; Wed, 21 Apr 2021 07:53:40 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id 34sm570563otf.38.2021.04.21.07.53.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Apr 2021 07:53:40 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id F34528006F0; Wed, 21 Apr 2021 09:53:38 -0500 (CDT) Date: Wed, 21 Apr 2021 09:53:38 -0500 From: Justin Pryzby To: Fujii Masao Cc: Pavel Stehule , Peter Geoghegan , Julien Rouhaud , "Tharakan, Robins" , pgsql-hackers@postgresql.org Subject: Re: track_planning causing performance regression Message-ID: <20210421145338.GT7256@telsasoft.com> References: <42a13b4c-e60c-c6e7-3475-8eff8050bed4@oss.nttdata.com> <646e5cae-5e8b-feaa-43dc-014bf355bf08@oss.nttdata.com> <20210418233615.GB7256@telsasoft.com> <20210419145545.GF7256@telsasoft.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, Apr 21, 2021 at 11:38:52PM +0900, Fujii Masao wrote: > On 2021/04/19 23:55, Justin Pryzby wrote: > > What does "kind" mean ? I think it means a "normalized" query or a "query > > structure". > > > > "a fewer kinds" is wrong, so I think the docs should say "a small number of > > queries" or maybe: > > Okay, I agree to update the description. > > > > > > Enabling this parameter may incur a noticeable performance penalty, > > > > > especially similar queries are run by many concurrent connections and > > > > > compete to update the same pg_stat_statements entry > > "a small number of" is better than "similar" at the above because > "similar" sounds a bit unclear in this case? > > It's better to use "entries" rather than "entry" at the above? How about like this? Enabling this parameter may incur a noticeable performance penalty, - especially when a fewer kinds of queries are executed on many + especially when queries with the same queryid are executed by many concurrent connections. Or: Enabling this parameter may incur a noticeable performance penalty, especially similar queries are executed by many concurrent connections and compete to update a small number of pg_stat_statements entries. -- Justin