Re: time values past 24:00:00 (or rather 23:59:60)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christoph Berg <myon(at)debian(dot)org>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: time values past 24:00:00 (or rather 23:59:60)
Date: 2020-06-04 20:54:34
Message-ID: 1313969.1591304074@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> Christoph Berg <myon(at)debian(dot)org> writes:
>> This is not ok:

>> # select '23:59:60.999'::time;
>> time
>> --------------
>> 24:00:00.999

> Yeah. Here's a draft patch for that (sans any regression tests as yet).

I pushed this fix, but only as far back as v10. To apply it in the
9.x branches, we'd need to make the code support float timestamps,
and I didn't think it was worth the trouble.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kyle Kingsbury 2020-06-04 20:59:42 Re: Potential G2-item cycles under serializable isolation
Previous Message Kyle Kingsbury 2020-06-04 20:34:58 Re: Potential G2-item cycles under serializable isolation