Re: descending index - Mailing list pgsql-general

From CoL
Subject Re: descending index
Date
Msg-id 3C7D8432.7060606@mportal.hu
Whole thread Raw
In response to Re: descending index  ("Pirtea Calin" <pcalin@rdsor.ro>)
List 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.



pgsql-general by date:

Previous
From: "Eduardo José Hernández Cisneros"
Date:
Subject: pgaccess
Next
From: Benjamin Franks
Date:
Subject: COPY FROM and TABLE LOCK question