Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCoyb-0007Js-FU for pgsql-general@arkaria.postgresql.org; Sun, 29 Apr 2018 16:15:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCoyY-0008Tv-1r for pgsql-general@arkaria.postgresql.org; Sun, 29 Apr 2018 16:14:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCoyX-0008Tl-MS for pgsql-general@lists.postgresql.org; Sun, 29 Apr 2018 16:14:57 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCoyT-0003Aa-99 for pgsql-general@postgresql.org; Sun, 29 Apr 2018 16:14:55 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 811F0CA174CE for ; Sun, 29 Apr 2018 09:14:51 -0700 (MST) Date: Sun, 29 Apr 2018 09:14:51 -0700 (MST) From: legrand legrand To: pgsql-general@postgresql.org Message-ID: <1525018491488-0.post@n3.nabble.com> In-Reply-To: <3099.1524949133@sss.pgh.pa.us> References: <1524774265469-0.post@n3.nabble.com> <20180427114503.GA12829@zakirov.localdomain> <1524946656214-0.post@n3.nabble.com> <3099.1524949133@sss.pgh.pa.us> Subject: Re: pg_stat_statements : how to catch non successfully finished statements ? 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 OK no need of a new hook. I'll try to implement what you suggest here, but this clearly exceeds my (poor) development skill. As you also noticed, in addition to collect this SQL statement counters for the corresponding QueryId, I would have been interested in its PlanId ... but it's an other subject Regards PAscal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html