Re: [PATCH] Tracking statements entry timestamp in pg_stat_statements
Andrei Zubkov <zubkov@moonset.ru>
From: Andrei Zubkov <zubkov@moonset.ru>
To: Andrei Lepikhov <a.lepikhov@postgrespro.ru>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-10-26T10:41:47Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Improve quoting in some error messages
- 07e5e6674233 14.0 cited
On Thu, 2023-10-26 at 15:49 +0700, Andrei Lepikhov wrote: > It is the gist of my question. If needed, You can remove the record > by > (userid, dbOid, queryId). As I understand, this extension is usually > used by an administrator. Who can reset these parameters except you > and > the DBMS? This extension is used by administrator but indirectly through some kind of sampling solution providing information about statistics change over time. The only kind of statistics unavailable to sampling solutions without a periodic reset is a min/max statistics. This patch provides a way for resetting those statistics without entry eviction. Suppose the DBA will use several sampling solutions. Every such solution can perform its own resets of min/max statistics. Other sampling solutions need a way to detect such resets to avoid undetected interference. Timestamping of min/max reset can be used for that purpose. -- regards, Andrei Zubkov Postgres Professional