Re: SupportRequestRows support function for generate_series_timestamptz

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: SupportRequestRows support function for generate_series_timestamptz
Date: 2024-07-08 02:50:02
Message-ID: CACJufxHGoaDKt9Da0a8=HygBA7A6x6YMjzzU11G3HCQzqSpSZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

looks good to me.

some minor questions:
/*
* Protect against overflows in timestamp_mi. XXX convert to
* ereturn one day?
*/
if (!TIMESTAMP_NOT_FINITE(start) && !TIMESTAMP_NOT_FINITE(finish) &&
!pg_sub_s64_overflow(finish, start, &dummy))

i don't understand the comment "XXX convert to ereturn one day?".

do we need to add unlikely for "pg_sub_s64_overflow", i saw most of
pg_sub_s64_overflow have unlikely.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-07-08 02:56:38 Re: Interrupts vs signals
Previous Message David Rowley 2024-07-08 02:47:33 Re: Parallel Bitmap Heap Scan reports per-worker stats in EXPLAIN ANALYZE