Re: Why overlaps is not working

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Andrus <eetasoft(at)online(dot)ee>, pgsql-general(at)postgresql(dot)org
Subject: Re: Why overlaps is not working
Date: 2006-11-11 17:01:24
Message-ID: 188383.84980.qm@web31809.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> In my application second and fourth parameters can be NULL which means
> forever.
> It this best solution ?
> How many times this is slower than expression in where clause?

I am not sure if this would work for you, but instead of using NULL to represent infinity, why not
use 'infinity' to represent infinity?

logs=# select 'infinity'::timestamp;
timestamp
-----------
infinity
(1 row)

Regards,

Richard Broersma Jr.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jorge Godoy 2006-11-11 17:40:43 Re: Why overlaps is not working
Previous Message Richard Huxton 2006-11-11 15:46:41 Re: Why overlaps is not working