pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gary Cowell <gary_cowell@yahoo.co.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Major differences between oracle and postgres performance - what can I do ?
Date: Fri, 18 Jun 2004 12:30:03 -0400
Message-ID: <20040618163003.GM11196@ns.snowman.net> (raw)
In-Reply-To: <20412.1087570627@sss.pgh.pa.us>
References: <20040618132554.72968.qmail@web25103.mail.ukl.yahoo.com>
	<20412.1087570627@sss.pgh.pa.us>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> [... thinks for awhile ...]  It seems possible that they may use sort
> code that knows it is performing a DISTINCT operation and discards
> duplicates on sight.  Given that there are only 534 distinct values,
> the sort would easily stay in memory if that were happening.

Could this optimization be added to PostgreSQL?  It sounds like a very
reasonable thing to do.  Hopefully there wouldn't be too much complexity
needed to add it.

	Stephen

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (18+ messages)  latest in thread

Message-ID: <20040618163003.GM11196@ns.snowman.net>
Permalink:  ../20040618163003.GM11196@ns.snowman.net/
Also on:    postgresql.org/message-id/20040618163003.GM11196@ns.snowman.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: sfrost@snowman.net, tgl@sss.pgh.pa.us, gary_cowell@yahoo.co.uk
  Subject: Re: Major differences between oracle and postgres performance - what can I do ?
  In-Reply-To: <20040618163003.GM11196@ns.snowman.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