From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | sqllist <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: How to make operator class? |
Date: | 2001-02-10 18:03:24 |
Message-ID: | 3A85826C.D8A40CFF@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Najm Hashmi | 2001-02-10 18:04:00 | What's wrong with this function |
Previous Message | Tom Lane | 2001-02-10 16:38:06 | Re: How to make operator class? |