Re: Infinite Interval

From: Joseph Koshakow <koshy44(at)gmail(dot)com>
To: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Gregory Stark (as CFM)" <stark(dot)cfm(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Infinite Interval
Date: 2023-03-25 15:42:58
Message-ID: CAAvxfHer+74GVcsQ-t3dhLyibr5rPd+atcULTbYfOb-9DGJTMA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Mar 24, 2023 at 9:43 AM Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
wrote:
>
> You don't need to do this, but looks like we can add DAYS_PER_WEEK
macro and
> use it here.

I've attached a patch with this new macro. There's probably tons of
places it can be used instead of hardcoding the number 7, but I'll save
that for a future patch.

- Joe Koshakow

Attachment Content-Type Size
v2-0001-Move-integer-helper-function-to-int.h.patch text/x-patch 3.3 KB
v2-0002-Check-for-overflow-in-make_interval.patch text/x-patch 4.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-03-25 15:55:13 Re: Progress report of CREATE INDEX for nested partitioned tables
Previous Message Tom Lane 2023-03-25 15:41:47 Re: About the constant-TRUE clause in reconsider_outer_join_clauses