From: | Rushikesh socha <rushikesh(dot)s(at)gmail(dot)com> |
---|---|
To: | Ron <ronljohnsonjr(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Exact same output - pg_stat_statements |
Date: | 2022-12-31 17:26:59 |
Message-ID: | CANgP4OLR3BNa7GD9yL2pED+bTojpqGPKYgQqQEimpFhG6RXTnw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Just trying to show that the query output is exactly the same anytime I
run.
Thanks.
On Fri, Dec 30, 2022 at 3:24 PM Ron <ronljohnsonjr(at)gmail(dot)com> wrote:
> 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: image.png]
>
>
> Thanks.
>
>
>
> --
> Born in Arizona, moved to Babylonia.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Hao Zhang | 2022-12-31 21:04:33 | REINDEX vs VACUUM |
Previous Message | Ron | 2022-12-31 08:55:10 | Re: Inserts create new records in reporting table |