Re: Simple queries take forever to run

From: Neil Conway <neilc(at)samurai(dot)com>
To: Michael Guerin <guerin(at)rentec(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Simple queries take forever to run
Date: 2003-08-28 00:11:19
Message-ID: 20030828001119.GB63737@home.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Rod Taylor 2003-08-28 01:14:19 Re: Queries sometimes take 1000 times the normal time
Previous Message Tom Lane 2003-08-27 23:39:08 Re: Queries sometimes take 1000 times the normal time