X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B9F955E40BA for ; Fri, 13 Aug 2004 15:16:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39119-06 for ; Fri, 13 Aug 2004 18:16:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 436F35E37CE for ; Fri, 13 Aug 2004 15:16:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7DIGXSU025442; Fri, 13 Aug 2004 14:16:33 -0400 (EDT) To: "Andy Lowe" Cc: pgsql-odbc@postgresql.org Subject: Re: Query is significantly slower on faster machine In-reply-to: <000501c48011$9fe99020$ef01a8c0@andy> References: <000501c48011$9fe99020$ef01a8c0@andy> Comments: In-reply-to "Andy Lowe" message dated "Wed, 11 Aug 2004 19:11:05 -0700" Date: Fri, 13 Aug 2004 14:16:33 -0400 Message-ID: <25441.1092420993@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/25 X-Sequence-Number: 4334 "Andy Lowe" writes: > I've got an application that runs on the same machine as my database. The > application contains a query that was taking significantly too long to run > on a test system. On my development machine, it runs approximately 8-10 > times faster, using a database containing identical data. My first instinct is to think that you're getting different plans for the query. Try EXPLAIN ANALYZE'ing the query on both systems and see what you get. regards, tom lane