pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar@frodo.hserus.net>
To: Gary Cowell <gary_cowell@yahoo.co.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Major differences between oracle and postgres performance
Date: Fri, 18 Jun 2004 17:47:55 +0530
Message-ID: <40D2DD73.7070600@frodo.hserus.net> (raw)
In-Reply-To: <20040618113157.84084.qmail@web25104.mail.ukl.yahoo.com>
References: <20040618113157.84084.qmail@web25104.mail.ukl.yahoo.com>

Gary Cowell wrote:
> The explain output on postgres shows the same
> execution with a scan on vers and a sort but the query
> time is 78.6 seconds.
> 
> The explain output from PostgreSQL is:
>                                    QUERY PLAN
> ---------------------------------------------------------------------------------
>  Unique  (cost=117865.77..120574.48 rows=142
> width=132)
>    ->  Sort  (cost=117865.77..119220.13 rows=541741
> width=132)
>          Sort Key: "version"
>          ->  Seq Scan on vers  (cost=0.00..21367.41
> rows=541741 width=132)
>                Filter: ("version" IS NOT NULL)
> 
> I do have an index on the column in question but
> neither oracle nor postgresql choose to use it (which
> given that we're visiting all rows is perhaps not
> surprising).

Can you post explain analyze for the same query? It contains actual numbers 
alond side the chosen plan.

> 
> I'm not as familiar with postgresql as I am with
> Oracle but I think I've configured comparible
> buffering and sort area sizes, certainly there isn't
> much physical IO going on in either case.

Well, for postgresql you should check out

http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html
http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html

HTH

  Shridhar



view thread (18+ messages)  latest in thread

Message-ID: <40D2DD73.7070600@frodo.hserus.net>
Permalink:  ../40D2DD73.7070600@frodo.hserus.net/
Also on:    postgresql.org/message-id/40D2DD73.7070600@frodo.hserus.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: shridhar@frodo.hserus.net, gary_cowell@yahoo.co.uk
  Subject: Re: Major differences between oracle and postgres performance
  In-Reply-To: <40D2DD73.7070600@frodo.hserus.net>

* 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