Re: Why overlaps is not working - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: Why overlaps is not working
Date
Msg-id 188383.84980.qm@web31809.mail.mud.yahoo.com
Whole thread Raw
In response to Re: Why overlaps is not working  ("Andrus" <eetasoft@online.ee>)
Responses Re: Why overlaps is not working  (Jorge Godoy <jgodoy@gmail.com>)
List 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.

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Why overlaps is not working
Next
From: Jorge Godoy
Date:
Subject: Re: Why overlaps is not working