Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Haribabu Kommi <kommi.haribabu@gmail.com>,
Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Amit Kapila <amit.kapila16@gmail.com>, Magnus Hagander
<magnus@hagander.net>, sk@zsrv.org, Robert Haas <robertmhaas@gmail.com>,
Fujii Masao <masao.fujii@gmail.com>, Ashutosh Sharma
<ashu.coek88@gmail.com>, Euler Taveira <euler@timbira.com.br>,
Pg Hackers <pgsql-hackers@postgresql.org>,
Simon Riggs <simon@2ndquadrant.com>, Dave Page <dpage@pgadmin.org>
Date: 2018-11-22T14:54:05Z
Lists: pgsql-hackers
On 19/11/2018 06:18, Haribabu Kommi wrote: > Amit suggested another option in another mail, so total viable > solutions that are discussed as of now are, > > 1. Single API with NULL input treat as invalid value > 2. Multiple API to deal with NULL input of other values > 3. Single API with NULL value to treat them as current user, current > database > and NULL queryid. > 4. Single API with -1 as invalid value, treat NULL as no matching. (Only > problem > with this approach is till now -1 is also a valid queryid, but setting > -1 as queryid > needs to be avoided. Can you show examples of what these would look like? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Extend pg_stat_statements_reset to reset statistics specific to a
- 43cbedab8ff1 12.0 landed
-
Default monitoring roles
- 25fff40798fc 10.0 cited