Re: Add session statistics to pg_stat_database
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Magnus Hagander <magnus@hagander.net>
Cc: Masahiro Ikeda <ikedamsh@oss.nttdata.com>, Ahsan Hadi
<ahsan.hadi@gmail.com>, Justin Pryzby <pryzby@telsasoft.com>, Soumyadeep
Chakraborty <soumyadeep2007@gmail.com>, PostgreSQL Hackers
<pgsql-hackers@lists.postgresql.org>
Date: 2021-01-18T16:11:08Z
Lists: pgsql-hackers
On Sun, 2021-01-17 at 14:07 +0100, Magnus Hagander wrote: > I have applied this version, with some minor changes: > > * I renamed the n_<x>_time members in the struct to just > total_<x>_time. The n_ indicates "number of" and is thus wrong for > time parameters. Right. > * Some very minor wording changes. > > * catversion bump (for once I didn't forget it!) Thank you! You included the catversion bump, but shouldn't PGSTAT_FILE_FORMAT_ID in "include/pgstat.h" be updated as well? Yours, Laurenz Albe
Commits
-
Bump PGSTAT_FILE_FORMAT_ID
- b2f87b46690a 14.0 landed
-
Add pg_stat_database counters for sessions and session time
- 960869da0803 14.0 landed
-
Fix oversight in my patch of yesterday: forgot to ensure that stats would
- 641912b4d17f 8.3.0 cited