X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E785A53702 for ; Mon, 18 Apr 2005 11:31:00 -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 28790-04 for ; Mon, 18 Apr 2005 14:30:56 +0000 (GMT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id B5B7A53695 for ; Mon, 18 Apr 2005 11:30:56 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 0D70D353B1; Mon, 18 Apr 2005 07:30:58 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 0BC393518C; Mon, 18 Apr 2005 07:30:58 -0700 (PDT) Date: Mon, 18 Apr 2005 07:30:58 -0700 (PDT) From: Stephan Szabo To: Joel Fradkin Cc: PostgreSQL Perform Subject: Re: FW: speed of querry? In-Reply-To: <000501c54416$c5914b50$797ba8c0@jfradkin> Message-ID: <20050418072558.E7812@megazone.bigpanda.com> References: <000501c54416$c5914b50$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/397 X-Sequence-Number: 11794 On Mon, 18 Apr 2005, Joel Fradkin wrote: > Another odd thing is when I tried turning off merge joins on the XP desktop > It took 32 secs to run compared to the 6 secs it was taking. > On the Linux (4proc box) it is now running in 3 secs with the mergejoins > turned off. > > Unfortunately it takes over 2 minutes to actually return the 160,000+ rows. > I am guessing that is either network (I have gig cards on a LAN) or perhaps > the ODBC driver (using PGADMIN III to do the select). > > I tried to run on psql on the server but it was putting it out to more. > If I do it and use > test.txt will it run it all out so I can get a time? > Does it display the time anywhere like in pgadminIII? Redirecting should turn the pager off. \timing will add a timing number after queries. If you want to not be bothered by the pager, you can turn if off with \pset pager off.