Re: descending index

From: CoL <col(at)mportal(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: descending index
Date: 2002-02-28 01:13:22
Message-ID: 3C7D8432.7060606@mportal.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pirtea Calin wrote:
> "Björn Lundin" wrote:
>
>>Can't you use 'order by' with 'asc or desc' ?
>>/Björn
>>
>
> Of course. I just wanted to know if there is a diference between using
> order by field asc/desc regarding the way indexes are used in plans
> when you execute a query. In Firebird when using order by desc it uses
> the descending index if available if not then it uses natural scan with
> sort descending. Does PostgreSQL use the ascending index both for
> asc and desc order by?
>
> Thanks in advance.
>
Both.

C.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Frank Bax 2002-02-28 03:32:34 Re: About vacuuming
Previous Message Benjamin Franks 2002-02-28 00:07:05 COPY FROM and TABLE LOCK question