From: Rui DeSousa <rui.desousa@icloud.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_stat_activity
Date: Mon, 11 Jun 2018 12:27:56 -0400
Message-ID: <BC0EBD96-110B-4CC7-A5B3-3088C40EEDA7@icloud.com> (raw)
In-Reply-To: <9884a24a-c129-a1a9-1901-2a9c8987331e@gmail.com>
References: <4405957b-2e0f-bfc5-eaf6-5e2864da2796@gmail.com>
<CAGDYbUM0Lv-fcFp_Mh4jyBtSrW24Z1psvey6FBi5q=LQx=7CMQ@mail.gmail.com>
<9884a24a-c129-a1a9-1901-2a9c8987331e@gmail.com>
> On Jun 11, 2018, at 9:56 AM, Ron <ronljohnsonjr@gmail.com> wrote:
>
> How, then, do I get only long-running SELECT statements?
>
Why only select statements? What about select statements that are really updates?
i.e.
select …. for update;
select do_some_work(); —In this case you will not see the actual executing SQL in the function which could be update, delete, select, etc.
Or what about delete or update with returning?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rui.desousa@icloud.com, ronljohnsonjr@gmail.com
Subject: Re: pg_stat_activity
In-Reply-To: <BC0EBD96-110B-4CC7-A5B3-3088C40EEDA7@icloud.com>
References: <4405957b-2e0f-bfc5-eaf6-5e2864da2796@gmail.com> <CAGDYbUM0Lv-fcFp_Mh4jyBtSrW24Z1psvey6FBi5q=LQx=7CMQ@mail.gmail.com> <9884a24a-c129-a1a9-1901-2a9c8987331e@gmail.com> <BC0EBD96-110B-4CC7-A5B3-3088C40EEDA7@icloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox