From: Ragnar <gnari@hive.is>
To: Tim Jones <TJones@optio.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: strange query behavior
Date: Wed, 13 Dec 2006 19:15:11 +0000
Message-ID: <1166037311.6369.123.camel@localhost.localdomain> (raw)
In-Reply-To: <47668A1334CDBF46927C1A0DFEB223D39F79A5@mail.optiosoftware.com>
References: <47668A1334CDBF46927C1A0DFEB223D39F79A5@mail.optiosoftware.com>
On miư, 2006-12-13 at 13:42 -0500, Tim Jones wrote:
> I have a query that uses an IN clause and it seems in perform great
> when there is more than two values in it but if there is only one it is
> really slow. Also if I change the query to use an = instead of IN in the
> case of only one value it is still slow. Possibly I need to reindex this
> particular index?
can you provide us with an EXPLAIN ANALYZE for these 2 cases?
what version pg is this?
does this happen only for a particular single value, or for any values?
I assume you have ANALYZEd the table in question.
gnari
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: gnari@hive.is, TJones@optio.com
Subject: Re: strange query behavior
In-Reply-To: <1166037311.6369.123.camel@localhost.localdomain>
* 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