Remove one TimestampTzGetDatum call in pg_stat_get_io()
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2024-09-06T10:48:25Z
Lists: pgsql-hackers
Attachments
Hi hackers, While working on the per backend I/O statistics patch ([1]), I noticed that there is an unnecessary call to TimestampTzGetDatum() in pg_stat_get_io() ( as the reset_time is already a Datum). Please find attached a tiny patch to remove this unnecessary call. [1]: https://www.postgresql.org/message-id/flat/ZtXR%2BCtkEVVE/LHF%40ip-10-97-1-34.eu-west-3.compute.internal Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
-
Fix incorrect pg_stat_io output on 32-bit machines.
- dd20f950d4a3 16.5 landed
- e69030cb5178 17.0 landed
- 129a2f6679fd 18.0 landed