Re: [GENERAL] Yet Another newbie not understanding why an index isn't used

From: Michal Maru¹ka <mmaruska(at)tin(dot)it>
To: felix(at)crowfix(dot)com
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Yet Another newbie not understanding why an index isn't used
Date: 1999-07-05 02:31:06
Message-ID: 199907050231.EAA09411@linux3.maruska.tin.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> hlt=> EXPLAIN SELECT * FROM hltdata ORDER BY stmp, id LIMIT 10;

If I remember well, the order of the index attributes must be the same as
... in the query which should use it: try "id, stmp"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Bitmead 1999-07-05 02:40:04 Re: [GENERAL] GROUP BY problem with 6.5
Previous Message Tamas Nyitrai 1999-07-05 01:35:37 GROUP BY problem with 6.5