pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sailer, Denis (YBUSA-CDR) <Denis.Sailer@Yellowbook.com>
Cc: 'pgsql-performance@postgresql.org' <pgsql-performance@postgresql.org>
Subject: Re: Query running slower than same on Oracle
Date: Wed, 25 Jun 2003 17:50:45 -0400
Message-ID: <18325.1056577845@sss.pgh.pa.us> (raw)
In-Reply-To: <58D6EF5727036048BC9E08ECB711A42092ECD0@crmsmail.corp.ybusa.net>
References: <58D6EF5727036048BC9E08ECB711A42092ECD0@crmsmail.corp.ybusa.net>

"Sailer, Denis (YBUSA-CDR)" <Denis.Sailer@Yellowbook.com> 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



view thread (3+ messages)  latest in thread

Message-ID: <18325.1056577845@sss.pgh.pa.us>
Permalink:  ../18325.1056577845@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18325.1056577845@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Denis.Sailer@Yellowbook.com
  Subject: Re: Query running slower than same on Oracle
  In-Reply-To: <18325.1056577845@sss.pgh.pa.us>
  References: <58D6EF5727036048BC9E08ECB711A42092ECD0@crmsmail.corp.ybusa.net> <18325.1056577845@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox