X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EF3F9D1CCAE for ; Thu, 29 Jan 2004 17:25:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 25050-06 for ; Thu, 29 Jan 2004 13:24:32 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 23DFAD1CC9C for ; Thu, 29 Jan 2004 13:24:30 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i0THOEIx024412; Thu, 29 Jan 2004 12:24:14 -0500 (EST) To: Stephan Szabo Cc: Bruno Wolff III , Achilleus Mantzios , email lists , pgsql-sql@postgresql.org Subject: Re: query not using index for descending records? In-reply-to: <20040129075643.D23153@megazone.bigpanda.com> References: <20040129131847.GE17068@wolff.to> <20040129140655.GA14885@wolff.to> <20040129075643.D23153@megazone.bigpanda.com> Comments: In-reply-to Stephan Szabo message dated "Thu, 29 Jan 2004 08:05:59 -0800" Date: Thu, 29 Jan 2004 12:24:14 -0500 Message-ID: <24411.1075397054@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/269 X-Sequence-Number: 16662 Stephan Szabo 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 - 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