Re: Infinity confuses planner (was Re: query plan) - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: Infinity confuses planner (was Re: query plan)
Date
Msg-id 200110132339.f9DNdvg23161@candle.pha.pa.us
Whole thread Raw
In response to Infinity confuses planner (was Re: query plan)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> The reason I didn't see it here is that on my platform, the infinity
> timestamp values aren't represented as real IEEE infinities, and so the
> result isn't NAN.
>
> Seems like we could fix this either by forbidding use of real infinity
> for timestamp and float8 values ... probably not workable for float8,
> even if it's okay for timestamp ... or by trying to defend against
> infinity and NAN results in the selectivity subroutines.

Shouldn't infinity be treated similar to NULL.  I know they are
different but they are clearly off-the-scale type values.  The problem
is that it is type-specific and not general enough for the optimizer.
Tough one.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Infinity confuses planner (was Re: query plan)
Next
From: Bruce Momjian
Date:
Subject: Re: Infinity confuses planner (was Re: query plan)