From: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Add a write_to_file member to PgStat_KindInfo |
Date: | 2024-11-20 14:05:04 |
Message-ID: | Zz3skBqzBncSFIuY@ip-10-97-1-34.eu-west-3.compute.internal |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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
Attachment | Content-Type | Size |
---|---|---|
v1-0001-Add-a-write_to_file-member-to-PgStat_KindInfo.patch | text/x-diff | 19.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Bertrand Drouvot | 2024-11-20 14:10:23 | Re: per backend I/O statistics |
Previous Message | Ashutosh Bapat | 2024-11-20 14:01:04 | Re: Enhancing Memory Context Statistics Reporting |