pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yves Vindevogel <yves.vindevogel@implements.be>
To: pgsql-performance@postgresql.org
Subject: View not using index
Date: Mon, 13 Jun 2005 08:54:21 +0200
Message-ID: <9e1745a6fe1ae29c6f1c824128871d36@implements.be> (raw)

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


Mail: yves.vindevogel@implements.be  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be

First they ignore you.  Then they laugh at you.  Then they fight you.  
Then you win.
Mahatma Ghandi.

Attachments:

Pasted Graphic 2.tiff (image/tiff, 5.6K) download view image

view thread (6+ messages)  latest in thread

Message-ID: <9e1745a6fe1ae29c6f1c824128871d36@implements.be>
Permalink:  ../9e1745a6fe1ae29c6f1c824128871d36@implements.be/
Also on:    postgresql.org/message-id/9e1745a6fe1ae29c6f1c824128871d36@implements.be

 · 

reply

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-performance@postgresql.org
  Cc: yves.vindevogel@implements.be
  Subject: Re: View not using index
  In-Reply-To: <9e1745a6fe1ae29c6f1c824128871d36@implements.be>
  References: <9e1745a6fe1ae29c6f1c824128871d36@implements.be>

* 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