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 1kKyZp-0004XK-UJ for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Sep 2020 06:48:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kKyZo-00078G-RN for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Sep 2020 06:48:28 +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 1kKyZo-000782-KB for pgsql-hackers@lists.postgresql.org; Wed, 23 Sep 2020 06:48:28 +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 1kKyZg-0002tC-Qj for pgsql-hackers@postgresql.org; Wed, 23 Sep 2020 06:48:28 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTP id 2F33A622D4; Wed, 23 Sep 2020 15:48:15 +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 15:48:15 +0900 From: Katsuragi Yuta To: Julien Rouhaud Cc: pgsql-hackers Subject: Re: [PATCH] Add features to pg_stat_statements In-Reply-To: References: <0d9f1107772cf5c3f954e985464c7298@oss.nttdata.com> Message-ID: <193879cdb9f6e14060bde2172f8399c9@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-18 18:49, Julien Rouhaud wrote: > Did you consider also adding the cumulated number of > evicted entries? This could be useful to know how to configure > pg_stat_statements.max. Thank you for your comments! I overlooked the cumulated number of evicted entries. This statistic looks important. But, I am not sure if I should add this statistic to a view. This is because I am not sure how to utilize the cumulated number of evicted entries for configuring pg_stat_statements.max. 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] https://www.postgresql.org/message-id/1600500942767-0.post%40n3.nabble.com Regards, Katsuragi Yuta