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 1kKzxf-0007wX-3M for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Sep 2020 08:17:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kKzxe-00080d-0V for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Sep 2020 08:17:10 +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 1kKzxd-0007yr-Q4 for pgsql-hackers@lists.postgresql.org; Wed, 23 Sep 2020 08:17:09 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKzxc-0003fe-8B for pgsql-hackers@postgresql.org; Wed, 23 Sep 2020 08:17:09 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTP id BD265622D4; Wed, 23 Sep 2020 17:17:04 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 23 Sep 2020 17:17:04 +0900 From: Katsuragi Yuta To: Julien Rouhaud Cc: pgsql-hackers , legrand legrand Subject: Re: [PATCH] Add features to pg_stat_statements In-Reply-To: References: <0d9f1107772cf5c3f954e985464c7298@oss.nttdata.com> <193879cdb9f6e14060bde2172f8399c9@oss.nttdata.com> Message-ID: <8ad65061e81ad622cb4a4b6fbbe25646@oss.nttdata.com> X-Sender: btkatsuragiyu@oss.nttdata.com User-Agent: Roundcube Webmail/1.1.9 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-09-23 16:01, Julien Rouhaud wrote: >> Not only providing a view but also logging evictions >> along with the number of evicted entries might be a choice. >> This idea is from legrand legrand [1]. > > +1. I'm wondering if logging each evicted entry, with its queryid, > would help to estimate the actual size of the normalised queries set. I agree with the estimation of the actual size of the query set is important. It looks difficult to estimate the actual size of the query set from queryid because queryid is a 64bit hash value. Regards, Katsuragi Yuta