Re: Re: BETWEEN [SYMMETRIC | ASYMMETRIC]

From: Thomas Swan <tswan-lst(at)ics(dot)olemiss(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: BETWEEN [SYMMETRIC | ASYMMETRIC]
Date: 2001-01-11 15:06:44
Message-ID: 5.0.2.1.0.20010111084710.01ad7580@tangent.ics.olemiss.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 1/10/2001 09:10 PM, you wrote:
>Thomas Swan <tswan-lst(at)ics(dot)olemiss(dot)edu> writes:
> > Actually if it were possible to look at the values before expanding. You
> > could reorder the expression so that it was always the case that B < C,
> > then your cost would only be one comparison plus the sequential scan.
>
>Uh ... what if B and C are not constants?

Hmmm... I see your point. I was looking back through the sources and was
thinking.

I'd hate doing the work twice.

Is there something in place to reorder or sort or compare results?
Possibly expanding to something like a <= max(b,c) and a >= min(b,c)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Per-Olof Pettersson 2001-01-11 15:17:21 Status of ALTER TABLE
Previous Message Tom Lane 2001-01-11 15:01:47 Re: AW: Re: GiST for 7.1 !!