From: Neil Conway <neilc@samurai.com>
To: Michael Guerin <guerin@rentec.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Simple queries take forever to run
Date: Wed, 27 Aug 2003 20:11:19 -0400
Message-ID: <20030828001119.GB63737@home.samurai.com> (raw)
In-Reply-To: <3F4D2535.8050103@rentec.com>
References: <3F4D2535.8050103@rentec.com>
On Wed, Aug 27, 2003 at 05:40:05PM -0400, Michael Guerin wrote:
> ex. query: select * from x where id in (select id from y);
>
> There's an index on each table for id. SQL Server takes <1s to return,
> postgresql doesn't return at all, neither does explain analyze.
This particular form of query is a known performance problem for PostgreSQL
7.3 and earlier -- the problem should hopefully be fixed in 7.4 (currently
in beta). Check the archives for more discussion on this topic.
-Neil
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: neilc@samurai.com, guerin@rentec.com
Subject: Re: Simple queries take forever to run
In-Reply-To: <20030828001119.GB63737@home.samurai.com>
References: <3F4D2535.8050103@rentec.com> <20030828001119.GB63737@home.samurai.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