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.89) (envelope-from ) id 1h8WFA-0003C5-Sh for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Mar 2019 20:30:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8WF9-0001Sx-EB for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Mar 2019 20:30:51 +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 1h8WF9-0001Nb-3O for pgsql-hackers@lists.postgresql.org; Mon, 25 Mar 2019 20:30:51 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8WF5-0003Gn-A7 for pgsql-hackers@postgresql.org; Mon, 25 Mar 2019 20:30:49 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id C378112D2FA26 for ; Mon, 25 Mar 2019 13:30:45 -0700 (MST) Date: Mon, 25 Mar 2019 13:30:45 -0700 (MST) From: legrand legrand To: pgsql-hackers@postgresql.org Message-ID: <1553545845798-0.post@n3.nabble.com> In-Reply-To: References: <6112091549979517@myt5-a323eb993ef7.qloud-c.yandex.net> <1550179299067-0.post@n3.nabble.com> <2205341550215950@sas1-cd55e40a6ba0.qloud-c.yandex.net> Subject: Re: Planning counters in pg_stat_statements (using pgss_store) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk As there are now 3 locking times on pgss hash struct, one day or an other, somebody will ask for a GUC to disable this feature (to be able to run pgss unchanged with only one lock as today). With this GUC, pgss_store should be able to store the query text and accumulated execution duration in the same call (as today). Will try to provide this soon. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html