pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: 'pgsql-performance@postgresql.org' <pgsql-performance@postgresql.org>
Subject: Re: not using index for select min(...)
Date: Fri, 31 Jan 2003 18:31:04 -0500
Message-ID: <20030131183104.L24535@mail.libertyrms.com> (raw)
In-Reply-To: <FE045D4D9F7AED4CBFF1B3B813C8533701023616@mail.sandvine.com>
References: <FE045D4D9F7AED4CBFF1B3B813C8533701023616@mail.sandvine.com>

On Fri, Jan 31, 2003 at 04:12:38PM -0500, Don Bowman wrote:
> Why wouldn't I be doing an index scan on this table?

Because you're using the aggregate function min().  See

<http://www.ca.postgresql.org/docs/faq-english.html#4.8;

A 

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (12+ messages)  latest in thread

Message-ID: <20030131183104.L24535@mail.libertyrms.com>
Permalink:  ../20030131183104.L24535@mail.libertyrms.com/
Also on:    postgresql.org/message-id/20030131183104.L24535@mail.libertyrms.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 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: andrew@libertyrms.info
  Subject: Re: not using index for select min(...)
  In-Reply-To: <20030131183104.L24535@mail.libertyrms.com>
  References: <FE045D4D9F7AED4CBFF1B3B813C8533701023616@mail.sandvine.com> <20030131183104.L24535@mail.libertyrms.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