From: Josh Berkus <josh@agliodbs.com>
To: sqllist <pgsql-sql@postgresql.org>
Subject: Re: How to make operator class?
Date: Sat, 10 Feb 2001 10:03:24 -0800
Message-ID: <3A85826C.D8A40CFF@agliodbs.com> (raw)
References: <20010210185907.HM.40000000001W64L@www5.hanmail.net>
<3775.981823086@sss.pgh.pa.us>
<3A858055.4B68C109@agliodbs.com>
<4348.981828101@sss.pgh.pa.us>
Tom,
> > Hmmm .... thinking about it logically, shouldn't the database engine be
> > able to use an index on a single column either backwards or forwards?
>
> Sure, but he wanted a sort with the first column in ascending order and
> the second in descending order. You can't get that by scanning an index
> that has both columns in the same order...
Aha. I see the problem. My approach would be to use two seperate
indexes, but maybe that's not sophisticated enough :-)
And, Tom, you're working too hard again. It's Saturday. Go home.
-Josh Berkus (Who is home, just VPN'ing into my office).
--
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com
Subject: Re: How to make operator class?
In-Reply-To: <3A85826C.D8A40CFF@agliodbs.com>
References: <20010210185907.HM.40000000001W64L@www5.hanmail.net> <3775.981823086@sss.pgh.pa.us> <3A858055.4B68C109@agliodbs.com> <4348.981828101@sss.pgh.pa.us> <3A85826C.D8A40CFF@agliodbs.com>
* 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