View not using index

From: Yves Vindevogel <yves(dot)vindevogel(at)implements(dot)be>
To: pgsql-performance(at)postgresql(dot)org
Subject: View not using index
Date: 2005-06-13 06:54:21
Message-ID: 9e1745a6fe1ae29c6f1c824128871d36@implements.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

I have a view that has something like this: select x, y, z from tbl
order by x, y
I have created a special index on x + y
I have run analyze

Still, when I use explain, pg says it will first sort my tables instead
of using my index
How is that possible ?

When I do explain select x,y,z from tbl order by x, y, it works like
I want it to work

Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements

Attachment Content-Type Size
Pasted Graphic 2.tiff image/tiff 5.6 KB

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Russell Smith 2005-06-13 07:05:35 Re: View not using index
Previous Message Madison Kelly 2005-06-13 04:29:08 Re: Index ot being used