Re: overlaps behaviour - ('2006-03-01'::TimeStamp, '2007-12-01'::TimeStamp) overlaps ('2007-12-01'::TimeStamp, 'Infinity'::TimeStamp)

From: Marek Lewczuk <newsy(at)lewczuk(dot)com>
To: PGSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: overlaps behaviour - ('2006-03-01'::TimeStamp, '2007-12-01'::TimeStamp) overlaps ('2007-12-01'::TimeStamp, 'Infinity'::TimeStamp)
Date: 2009-02-23 21:38:21
Message-ID: daadfdc20902231338q3851fa13kbeea36d7abe30686@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/2/23 Marek Lewczuk <marek(at)lewczuk(dot)com>:
> Hello,
> I can't find SQL definition for OVERLAPS operator so I don't know
> whether following expression's result (false) is appropriate
> behaviour:
> select ('2006-03-01'::TimeStamp, '2007-12-01'::TimeStamp) overlaps
> ('2007-12-01'::TimeStamp, 'Infinity'::TimeStamp)
>
> Can anyone confirm that ? In my understanding of "overlaps" it should
> result true, as those two periods overlaps in 2007-12-01.
>
> psql (PostgreSQL) 8.3.5
Ok. Sorry for that question. I found SQL92 definition and it seems,
that PG implementation is just fine.

Best regards,
ML

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-02-23 21:55:20 Re: Product Roadmap question and request for recommendation
Previous Message Tim Uckun 2009-02-23 21:21:16 Re: Backup Strategy Second Opinion