From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Bruno Wolff III <bruno@wolff.to>
Cc: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: email lists <lists@darrenmackay.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: query not using index for descending records?
Date: Thu, 29 Jan 2004 13:40:55 -0500
Message-ID: <25739.1075401655@sss.pgh.pa.us> (raw)
In-Reply-To: <20040129101857.D26621@megazone.bigpanda.com>
References: <20040129131847.GE17068@wolff.to>
<Pine.LNX.4.44.0401291525350.9854-100000@matrix.gatewaynet.com>
<20040129140655.GA14885@wolff.to>
<20040129075643.D23153@megazone.bigpanda.com>
<24411.1075397054@sss.pgh.pa.us>
<20040129101857.D26621@megazone.bigpanda.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, sszabo@megazone.bigpanda.com, bruno@wolff.to, achill@matrix.gatewaynet.com, lists@darrenmackay.com
Subject: Re: query not using index for descending records?
In-Reply-To: <25739.1075401655@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox