X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7B38BD1B8CC for ; Wed, 27 Aug 2003 10:56:28 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 06004-03 for ; Wed, 27 Aug 2003 10:56:01 -0300 (ADT) Received: from ram.rentec.com (unknown [192.5.35.66]) by svr1.postgresql.org (Postfix) with ESMTP id C516ED1B8E6 for ; Wed, 27 Aug 2003 10:55:56 -0300 (ADT) Received: from rentec.com (IDENT:618@murre.rentec.com [192.5.35.148]) by ram.rentec.com (8.12.1/8.12.1) with ESMTP id h7RDu0WU024096 for ; Wed, 27 Aug 2003 09:56:00 -0400 (EDT) Message-ID: <3F4CB86F.1020901@rentec.com> Date: Wed, 27 Aug 2003 09:55:59 -0400 From: Michael Guerin User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Simple queries take forever to run Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/366 X-Sequence-Number: 3182 I'm running into some performance problems trying to execute simple queries. postgresql version 7.3.3 .conf params changed from defaults. shared_buffers = 64000 sort_mem = 64000 fsync = false effective_cache_size = 400000 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. x has 1200673 rows y has 1282 rows It seems like its ignoring the index and not using enough memory.. any ideas?