From: Greg Stark <gsstark@mit.edu>
To: Mr Pink <mr_pink_is_the_only_pro@yahoo.com>
Cc: Jack Kerkhof <jack.kerkhof@guest-tek.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why does a simple query not use an obvious index?
Date: 29 Aug 2004 17:10:37 -0400
Message-ID: <87llfxk5v6.fsf@stark.xeocode.com> (raw)
In-Reply-To: <20040829180448.41247.qmail@web41108.mail.yahoo.com>
References: <20040829180448.41247.qmail@web41108.mail.yahoo.com>
Mr Pink <mr_pink_is_the_only_pro@yahoo.com> writes:
> AFAIK postgres doesn't peek at values used in a query when optimizing
Of course it does.
However sometimes things don't work perfectly.
To get good answers rather than just guesses we'll need two things:
. What version of postgres are you using.
. The output of EXPLAIN ANALYZE select ...
--
greg
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: gsstark@mit.edu, mr_pink_is_the_only_pro@yahoo.com, jack.kerkhof@guest-tek.com
Subject: Re: Why does a simple query not use an obvious index?
In-Reply-To: <87llfxk5v6.fsf@stark.xeocode.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