Re: query not using index for descending records? - Mailing list pgsql-sql

From Tom Lane
Subject Re: query not using index for descending records?
Date
Msg-id 25739.1075401655@sss.pgh.pa.us
Whole thread Raw
In response to Re: query not using index for descending records?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-sql
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> Yeah, that's what I figured.  I thought it might be useful for people to
> play with though since at least for the integer/float types writing C
> versions of the comparitors is easy. I was thinking for real it'd be nice
> to be able to use the normal comparitor but invert the return value as
> necessary rather than providing two functions, but I didn't look at what
> that would take.

I think the C versions should be written to just call the "normal"
comparators and negate the result, which'll make them one-liner
boilerplate.  It's just a matter of grinding out all that boilerplate ...
        regards, tom lane


pgsql-sql by date:

Previous
From: "Octavio Alvarez"
Date:
Subject: Re: LEFT JOIN on one and/or another column (thanks)
Next
From: Josh Berkus
Date:
Subject: Re: [PERFORM] Set-Returning Functions WAS: On the performance of views