Re: Fix comments in instr_time.h and remove an unneeded cast to int64

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2024-08-06T11:28:38Z
Lists: pgsql-hackers
On 06/08/2024 11:54, Bertrand Drouvot wrote:
> Hi hackers,
> 
> While working on [1], I came across what seems to be incorrect comments in
> instr_time.h and an unneeded cast to int64.
> 
> Indeed, 03023a2664 represented time as an int64 on all platforms but forgot to
> update the comment related to INSTR_TIME_GET_MICROSEC() and provided an incorrect
> comment for INSTR_TIME_GET_NANOSEC().
> 
> Please find attached a tiny patch to correct those and, in passing, remove what
> I think is an unneeded cast to int64.

Applied, thanks!

-- 
Heikki Linnakangas
Neon (https://neon.tech)




Commits

  1. Fix datatypes in comments in instr_time.h

  2. Revert "Fix comments in instr_time.h and remove an unneeded cast to int64"

  3. Fix comments in instr_time.h and remove an unneeded cast to int64