pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Madison Kelly <linux@alteeve.com>
To: pgsql-performance@postgresql.org
Cc: Bruno Wolff III <bruno@wolff.to>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: Index ot being used
Date: Sun, 12 Jun 2005 23:42:05 -0400
Message-ID: <42AD008D.4080600@alteeve.com> (raw)
In-Reply-To: <20050613031317.GA18988@wolff.to>
References: <1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com>
	<20050610155535.GO8451@tobias.nordicbet.com>
	<42AC42CB.8050703@alteeve.com>
	<24636.1118591783@sss.pgh.pa.us>
	<42ACBC95.9020404@alteeve.com>
	<20050613030001.GB17491@wolff.to>
	<20050613031317.GA18988@wolff.to>

Bruno Wolff III wrote:
> On Sun, Jun 12, 2005 at 22:00:01 -0500,
>   Bruno Wolff III <bruno@wolff.to> wrote:
> 
>>On Sun, Jun 12, 2005 at 18:52:05 -0400,
>>  Madison Kelly <linux@alteeve.com> wrote:
>>
>>>  After sending that email I kept plucking away and in the course of 
>>>doing so decided that I didn't need to return the 'file_type' column. 
>>>Other than that, it would see my query now matches what you two have 
>>>recommended in the 'ORDER BY...' front but I still can't get an index 
>>>search.
>>
>>No it doesn't. Even if you don't return file_type you still need it
>>in the order by clause if you want postgres to consider using your
>>index.
> 
> 
> I didn't notice that you had changed the index. The reason this index
> doesn't help is that you can't use it to select on records with the
> desired file_type.

As you probably saw in my last reply, I went back to the old index and 
tried the query you and Tom Lane recommended. Should this not have 
caught the index?

At any rate, I am re-reading the documents on indexing for 7.4.x on 
postgresql.org... This is kind of flustering. Thanks again though for 
som much help!

Madison

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Madison Kelly (Digimer)
TLE-BU, The Linux Experience; Back Up
http://tle-bu.thelinuxexperience.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



view thread (31+ messages)  latest in thread

Message-ID: <42AD008D.4080600@alteeve.com>
Permalink:  ../42AD008D.4080600@alteeve.com/
Also on:    postgresql.org/message-id/42AD008D.4080600@alteeve.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: linux@alteeve.com, bruno@wolff.to, tgl@sss.pgh.pa.us
  Subject: Re: Index ot being used
  In-Reply-To: <42AD008D.4080600@alteeve.com>

* 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