Re: BUG #18445: date_part / extract range for hours do not match documentation

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Marek Läll <lall(dot)marek(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "fcaldasdesou(at)bloomberg(dot)net" <fcaldasdesou(at)bloomberg(dot)net>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #18445: date_part / extract range for hours do not match documentation
Date: 2024-04-26 13:06:30
Message-ID: CAKFQuwZs3WPRuTSm8xkJn-V-gWY-kyJXmb7vcb7CwtuZn08c4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Friday, April 26, 2024, Marek Läll <lall(dot)marek(at)gmail(dot)com> wrote:

> Hi!
>
> psql (16.2, server 15.5) gives the following responses.
> Time handling looks quite inconsistent.
>

That’s probably a fair assessment.

My opinion is that example 2 is the only one which gives the correct
> result. Examples 1 and 3 should report errors as well.
>

We tend not to introduce breaking changes if the only motivation is to be
consistent.

David J.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kumar, Devesh 2024-04-26 19:06:56 DETAIL: pg_rewind: servers diverged at WAL location 0/9000000 on timeline 1
Previous Message Marek Läll 2024-04-26 10:23:26 Re: BUG #18445: date_part / extract range for hours do not match documentation