Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSeKG-0004Fw-Tz for pgsql-admin@arkaria.postgresql.org; Tue, 12 Jun 2018 08:06:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSeKF-0004Lu-Od for pgsql-admin@arkaria.postgresql.org; Tue, 12 Jun 2018 08:06:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSeHK-00070c-7w for pgsql-admin@lists.postgresql.org; Tue, 12 Jun 2018 08:03:46 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSeHG-0004FR-Ly for pgsql-admin@postgresql.org; Tue, 12 Jun 2018 08:03:45 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id A57CCD6CE2ED for ; Tue, 12 Jun 2018 01:03:40 -0700 (MST) Date: Tue, 12 Jun 2018 01:03:40 -0700 (MST) From: pavan95 To: pgsql-admin@postgresql.org Message-ID: <1528790620675-0.post@n3.nabble.com> In-Reply-To: References: <4405957b-2e0f-bfc5-eaf6-5e2864da2796@gmail.com> <9884a24a-c129-a1a9-1901-2a9c8987331e@gmail.com> <1528781509107-0.post@n3.nabble.com> Subject: Re: pg_stat_activity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi David, On Monday, June 11, 2018, pavan95 <[hidden email]> wrote: Hi David, >>You can also configure table level audit with the help of triggers to capture DML's=20 =E2=80=8B>How? Please find below procedure to configure table level audit with the help of triggers : [...] That's it and you are done. Just add the table you want to track the DML's in the below way: >I'm missing the part where any of that has to do with pg_stat_activity and the question that this >thread is about...in particular the part about select statements. Yeah, this method is to track the execution times of the DML queries(long running), just said if Ron's intention was to identify the long running queries might be SELECT .. FOR UPDATES, he can use this method.=20 And it is not related in any way with pg_stat_activity. Regards, Pavan -- Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html