Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query
Дата
Msg-id
20180706211018.2huhxufaw57u6qob@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
New function pg_stat_statements_reset_query() to reset statistics ofa specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Jeremy Schneider <schneider@ardentperf.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Daniel Gustafsson <daniel@yesql.se>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Ashutosh Sharma <ashu.coek88@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Euler Taveira <euler@timbira.com.br>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Robert Haas <robertmhaas@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Rui DeSousa <rui@crazybean.net>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Euler Taveira <euler@timbira.com.br>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Ashutosh Sharma <ashu.coek88@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Vik Fearing <vik.fearing@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Fujii Masao <masao.fujii@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Fujii Masao <masao.fujii@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Robert Haas <robertmhaas@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Magnus Hagander <magnus@hagander.net>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Vik Fearing <vik.fearing@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query Sergei Kornilov <sk@zsrv.org>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Michael Paquier <michael@paquier.xyz>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Robert Haas <robertmhaas@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query Alvaro Herrera <alvherre@2ndquadrant.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Magnus Hagander <magnus@hagander.net>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Amit Kapila <amit.kapila16@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Fujii Masao <masao.fujii@gmail.com>
Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query Haribabu Kommi <kommi.haribabu@gmail.com>
On 2018-Jul-06, Sergei Kornilov wrote:

> 06.07.2018, 22:35, "Robert Haas" :
> > On Fri, Jul 6, 2018 at 1:26 PM, Fujii Masao  wrote:
> >>  Hmm... so pg_stat_statements_reset() is allowed to be executed by
> >>  pg_read_all_stats role while other stats reset functions like
> >>  pg_stat_reset() can be executed only by superusers. Which looks
> >>  strange and inconsistent to me.
> >
> > Yeah, why would a pg_READ_all_stats role let you change stuff?
> 
> +1, personally i was surprised first time. But I thought that it was discussed before committing version 1.5
> I read original thread [1] and, as far i see, pg_stat_statements_reset change was not discussed.

Ugh, it's true :-(
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=25fff40798fc4ac11a241bfd9ab0c45c085e2212#patch8

Dave, Simon, any comments?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Tom Lane
Дата:
FAQ