X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 09DC5D1B4F9 for ; Sun, 26 Oct 2003 23:29:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 24550-02 for ; Sun, 26 Oct 2003 19:29:22 -0400 (AST) Received: from pimout4-ext.prodigy.net (pimout4-ext.prodigy.net [207.115.63.103]) by svr1.postgresql.org (Postfix) with ESMTP id 49A6FD1B4EF for ; Sun, 26 Oct 2003 19:29:19 -0400 (AST) Received: from sbcglobal.net (adsl-64-169-94-134.dsl.snfc21.pacbell.net [64.169.94.134]) by pimout4-ext.prodigy.net (8.12.9/8.12.3) with ESMTP id h9QNTDl0106828; Sun, 26 Oct 2003 18:29:21 -0500 Message-ID: <3F9BCBF5.2090506@sbcglobal.net> Date: Sun, 26 Oct 2003 15:28:21 +0200 From: Yonatan Goraly User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4.1) Gecko/20030917 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: Hannu Krosing Cc: pgsql-performance@postgresql.org Subject: Re: Slow performance with no apparent reason References: <3F9AEA51.2070701@sbcglobal.net> <1067179095.2604.3.camel@fuji.krosing.net> In-Reply-To: <1067179095.2604.3.camel@fuji.krosing.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/657 X-Sequence-Number: 4405 I run ANALYZE and the problem resolved Thanks >Yonatan Goraly kirjutas P, 26.10.2003 kell 00:25: > > >>I am in the process of adding PostgreSQL support for an application, >>in addition to Oracle and MS SQL. >>I am using PostgreSQL version 7.3.2, Red Hat 9.0 on Intel Pentium III >>board. >> >>I have a query that generally looks like this: >> >>SELECT t1.col1, t2.col1 FROM t1, t2 WHERE t1.x=t2.y AND t2.p='string' >>AND t2.q=1 >> >>This query is strikingly slow (about 100 sec when both t1 and t2 has >>about 1,200 records, compare with less than 4 sec with MS SQL and >>Oracle) >> >> > >always send results of EXPLAIN ANALYZE if you ask for help on [PERFORM] > >knowing which indexes you have would also help. > >and you should have run ANALYZE too. > >----------------- >Hannu > > > >