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 12:24:14 -0500
Message-ID: <24411.1075397054@sss.pgh.pa.us> (raw)
In-Reply-To: <20040129075643.D23153@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>
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> I'd thought that I'd previously sent a message containing a set of
> definitions for the reverse opclasses (not meant for inclusion to the
> system because I was making SQL functions that basically did -<normal
> comparison function> to use as the function of the operator class, but
> possibly worth playing with) but now that I actually search again, I don't
> see it.
I don't recall having seen such a thing go by...
I fear that using SQL functions as comparators would only be useful for
proof-of-concept, not as an industrial-strength implementation. The
index code needs comparator functions not to leak memory, and I doubt
that that could be guaranteed with a SQL function. You'd probably have
speed issues too.
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: <24411.1075397054@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