News for hackers. Stuff that matters.
Re:Lesser-known Postgres features by rvdginste on Wednesday November 10, 2021 @12:45AM (#29171482)
If you use left-inclusive, right-exclusive intervals [), then then the overlap condition is:

meeting_a.starts_at <= meeting_b.ends_at && meeting_b.starts_at <= meeting_a.ends_at

So, indeed, the scenario as described in the article is more complex than needed.

There are no comments on this comment yet.