Re: 9.2 Beta: intersection of daterange

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 9.2 Beta: intersection of daterange
Date: 2012-05-21 18:11:42
Message-ID: 4FBA855E.5090207@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/16/12 1:40 AM, Brar Piening wrote:
> Misa Simic wrote:
>> I think result is ok... 2010-01-04 is not inside first range...
>
> Staring at my query for five minutes obviously didn't prevent me from
> creating that noise.
>
> I meant to query "SELECT '[2010-03-15,2010-05-22)'::daterange *
> '[2010-04-01,)'::daterange AS intersection;" which gives the expected
> result.
>
> Sorry for the noise!

Thanks for testing! You've inadvertently done a positive test, which is
a good thing ...

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-05-21 18:20:22 Re: read() returns ERANGE in Mac OS X
Previous Message Gurjeet Singh 2012-05-21 18:10:38 A table for ALTER TABLE .. ENABLE TRIGGER combining session_replication_role GUC