From: Michael Glaesemann <grzm@seespotcode.net>
To: Marc G. Fournier <scrappy@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: timestamp query doesn't use an index ...
Date: Sun, 21 May 2006 10:47:39 +0900
Message-ID: <CDFEA380-8C33-4B73-8FFA-FBE4A659ADBF@seespotcode.net> (raw)
In-Reply-To: <20060520223704.T1114@ganymede.hub.org>
References: <20060520223704.T1114@ganymede.hub.org>
On May 21, 2006, at 10:42 , Marc G. Fournier wrote:
> -> Seq Scan on page_schedule ps2 (cost=0.00..2364.95
> rows=33110 width=16) (actual time=0.021..623.363 rows=94798 loops=1)
I don't know about rewriting the query, but it appears your
statistics are a little out of date (e.g., rows expected/actual
33110/94798). Does running ANALYZE help?
Michael Glaesemann
grzm seespotcode net
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-sql@postgresql.org
Cc: grzm@seespotcode.net, scrappy@postgresql.org
Subject: Re: timestamp query doesn't use an index ...
In-Reply-To: <CDFEA380-8C33-4B73-8FFA-FBE4A659ADBF@seespotcode.net>
* 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