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

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix comments in instr_time.h and remove an unneeded cast to int64
Date: 2024-08-06 11:28:38
Message-ID: d398f38f-2444-451e-8fc4-58a9878541df@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2024-08-06 11:42:27 Re: Logical Replication of sequences
Previous Message Ranier Vilela 2024-08-06 11:23:15 Re: Memory growth observed with C++ application consuming libpq.dll on Windows