Remove one TimestampTzGetDatum call in pg_stat_get_io()

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Remove one TimestampTzGetDatum call in pg_stat_get_io()
Date: 2024-09-06 10:48:25
Message-ID: Ztrd+XcPTz1zorkg@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,

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

Attachment Content-Type Size
v1-0001-Remove-one-TimestampTzGetDatum-call-in-pg_stat_ge.patch text/x-diff 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Yugo Nagata 2024-09-06 11:10:43 Remove emode argument from XLogFileRead/XLogFileReadAnyTLI
Previous Message Alexander Lakhin 2024-09-06 10:10:10 Re: On disable_cost