X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id D199530FC07 for ; Wed, 25 Jun 2003 21:50:55 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 11633-05 for ; Wed, 25 Jun 2003 18:50:45 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 3D93830FCF5 for ; Wed, 25 Jun 2003 18:50:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5PLojQQ018326; Wed, 25 Jun 2003 17:50:45 -0400 (EDT) To: "Sailer, Denis (YBUSA-CDR)" Cc: "'pgsql-performance@postgresql.org'" Subject: Re: Query running slower than same on Oracle In-reply-to: <58D6EF5727036048BC9E08ECB711A42092ECD0@crmsmail.corp.ybusa.net> References: <58D6EF5727036048BC9E08ECB711A42092ECD0@crmsmail.corp.ybusa.net> Comments: In-reply-to "Sailer, Denis (YBUSA-CDR)" message dated "Wed, 25 Jun 2003 16:33:16 -0500" Date: Wed, 25 Jun 2003 17:50:45 -0400 Message-ID: <18325.1056577845@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/173 X-Sequence-Number: 2257 "Sailer, Denis (YBUSA-CDR)" writes: > We are evaluating PostgreSQL for a typical data warehouse application. I > have 3 tables below that are part of a Star schema design. The query listed > below runs in 16 seconds on Oracle 9.2 and 3+ minutes on PostgreSQL 7.3.3 > Here are the details. The majority of the runtime seems to be going into the sort step. There is not much to be done about this in 7.3, but 7.4 should use a hashed aggregation approach for this query, which'd eliminate the sort step and hopefully reduce the time a great deal. Since you're only doing evaluation at this point, it might be worth your while to try out CVS tip ... regards, tom lane