Add a write_to_file member to PgStat_KindInfo
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2024-11-20T14:05:04Z
Lists: pgsql-hackers
Attachments
Hi hackers, Working on [1] produced the need to give to the statistics the ability to decide whether or not they want to be written to the file on disk. Indeed, there is no need to write the per backend I/O stats to disk (no point to see stats for backends that do not exist anymore after a re-start), so $SUBJECT. This new member could also be useful for custom statistics, so creating this dedicated thread. The attached patch also adds a test in the fixed injection points statistics. It does not add one for the variable injection points statistics as I think adding one test is enough (the code changes are simple enough). [1]: https://www.postgresql.org/message-id/Zy4bmvgHqGjcK1pI%40ip-10-97-1-34.eu-west-3.compute.internal Looking forward to your feedback, Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add write_to_file to PgStat_KindInfo for pgstats kinds
- c06e71d1acaf 18.0 landed