Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Julien Rouhaud <rjuju123@gmail.com>,
Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Bruce Momjian <bruce@momjian.us>, Alvaro Herrera
<alvherre@alvh.no-ip.org>, Tom Lane <tgl@sss.pgh.pa.us>,
Nitin Jadhav <nitinjadhavpostgres@gmail.com>,
Hannu Krosing <hannuk@google.com>, Robert Haas <robertmhaas@gmail.com>,
Pavel Stehule <pavel.stehule@gmail.com>,
Michael Paquier <michael@paquier.xyz>,
torikoshia <torikoshia@oss.nttdata.com>, Atsushi Torikoshi
<atorik@gmail.com>, Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>,
Tomas Vondra <tomas.vondra@2ndquadrant.com>,
Evgeny Efimkin <efimkin@yandex-team.ru>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Magnus Hagander <magnus@hagander.net>
Date: 2021-07-12T20:02:59Z
Lists: pgsql-hackers
On 22.04.21 11:23, Julien Rouhaud wrote: > The statistics gathered by the module are made available via a > view named <structname>pg_stat_statements</structname>. This view > - contains one row for each distinct database ID, user ID and query > - ID (up to the maximum number of distinct statements that the module > + contains one row for each distinct database ID, user ID, query ID and > + toplevel (up to the maximum number of distinct statements that the module > can track). The columns of the view are shown in > <xref linkend="pgstatstatements-columns"/>. I'm having trouble parsing this new sentence. It now says essentially "This view contains one row for each distinct database ID, each distinct user ID, each distinct query ID, and each distinct toplevel." That last part doesn't make sense.
Commits
-
Clarify description of pg_stat_statements columns
- b4deefc39b93 15.0 landed
- 3b57d5af7435 14.0 landed
-
Fix wording in description of pg_stat_statements.toplevel
- f9e6d00df029 14.0 landed
-
Mention that toplevel is part of pg_stat_statements key.
- 7531fcb1fcf5 14.0 landed
-
adjust query id feature to use pg_stat_activity.query_id
- 9660834dd8bf 14.0 landed
-
Update copyright for 2021
- ca3b37487be3 14.0 cited
-
Take the statistics collector out of the loop for monitoring backends'
- b13c9686d084 8.2.0 cited