overlaps operator for time type(s)

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: overlaps operator for time type(s)
Date: 2001-09-25 15:47:43
Message-ID: 3BB0A71F.7B54E466@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I see that

SELECT (time '00:00', interval '1 hour')
OVERLAPS (time '01:30', interval '1 day') AS "False";

(a case in the regression tests) returns false (currently labeled as
returning true, but that is another issue ;).

istm that this *should* return true, since times do wrap around the day
boundary. That is, this should be evaluated as though the second time
period is really a full day long, rather than evaluate to a time period
of zero length.

SQL99 *seems* to ask for the current behavior, rather than a (to me)
more intuitive wrapping behavior. Could someone check their
interpretation of the standard to see if there could be support for the
"wrapping interpretation"? Does anyone else think the first (current)
interpretation is a bit screwy??

- Thomas

Browse pgsql-hackers by date

  From Date Subject
Next Message Haller Christoph 2001-09-25 16:27:38 Transaction in chained mode
Previous Message frederic massot 2001-09-25 13:43:14 Problem with the accents