Exact same output - pg_stat_statements

Поиск
Список
Период
Сортировка
От Rushikesh socha
Тема Exact same output - pg_stat_statements
Дата
Msg-id CANgP4OLwgNE8isVwah5+3Aywh7Dq9N=8oHOBxOAzVtz8+G9DTw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Exact same output - pg_stat_statements  (Ron <ronljohnsonjr@gmail.com>)
Re: Exact same output - pg_stat_statements  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
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.


Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: Purging few months old data and vacuuming in production
Следующее
От: Ron
Дата:
Сообщение: Re: Exact same output - pg_stat_statements