From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Exact same output - pg_stat_statements
Date: Fri, 30 Dec 2022 14:24:33 -0600
Message-ID: <eba309b1-f1e4-20e8-e96a-4444a43568ca@gmail.com> (raw)
In-Reply-To: <CANgP4OLwgNE8isVwah5+3Aywh7Dq9N=8oHOBxOAzVtz8+G9DTw@mail.gmail.com>
References: <CANgP4OLwgNE8isVwah5+3Aywh7Dq9N=8oHOBxOAzVtz8+G9DTw@mail.gmail.com>
The screen shots are hard to see. Too small. (Imgur links might be better.)
On 12/30/22 10:04, Rushikesh socha wrote:
> Hi, Whenever I am running the below query on one of my Azure PostgreSQL
> PaaS instances I am getting exact same output. I feel it shows old
> information but as far as i know pg_stat_statements only shows current
> information and not past right ? It may be a bug?
>
> SELECT dbid,queryid,substring(query, 1, 50) AS short_query,
> round(total_time::numeric, 2) AS total_time,
> calls,
> round(mean_time::numeric, 2) AS mean,
> round((100 * total_time / sum(total_time::numeric) OVER
> ())::numeric, 2) AS percentage_cpu
> FROM pg_stat_statements
> ORDER BY total_time DESC
> LIMIT 20;
>
> I have erased the query text from the screenshot below. but Please look at
> the rest of the columns which are exactly the same. How it is possible ?
>
> image.png
>
>
> Thanks.
> *
> *
>
--
Born in Arizona, moved to Babylonia.
Attachments:image.png (image/png, 204.9K) downloadview image
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-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Exact same output - pg_stat_statements
In-Reply-To: <eba309b1-f1e4-20e8-e96a-4444a43568ca@gmail.com>
References: <CANgP4OLwgNE8isVwah5+3Aywh7Dq9N=8oHOBxOAzVtz8+G9DTw@mail.gmail.com> <eba309b1-f1e4-20e8-e96a-4444a43568ca@gmail.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