pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: indexes not being used!
Date: Fri, 21 Mar 2003 11:02:30 -0500
Message-ID: <13300.1048262550@sss.pgh.pa.us> (raw)
In-Reply-To: <3E7B3365.5090603@joeconway.com>
References: <004101c2efc0$65e6d0a0$de138f80@virginia.edu>
	<3E7B3365.5090603@joeconway.com>

Joe Conway <mail@joeconway.com> writes:
> It's hard to tell from what you did post, but if the query returns a 
> significant portion of the table then a seq scan is faster, and is 
> properly picked by the optimizer. Please post EXPLAIN ANALYZE results.

And do a VACUUM ANALYZE beforehand.  The explain estimates look like
the planner thinks all these tables are tiny.

> (and actually, this thread probably should be on the SQL or the PERFORM 
> lists, not this one)

Right.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <13300.1048262550@sss.pgh.pa.us>
Permalink:  ../13300.1048262550@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13300.1048262550@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mail@joeconway.com, jkanter@virginia.edu
  Subject: Re: indexes not being used!
  In-Reply-To: <13300.1048262550@sss.pgh.pa.us>
  References: <004101c2efc0$65e6d0a0$de138f80@virginia.edu> <3E7B3365.5090603@joeconway.com> <13300.1048262550@sss.pgh.pa.us>

* 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