pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ole Tange <postgresql.org@tange.dk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Help interpreting explain analyze output
Date: Sun, 15 Aug 2004 15:40:37 -0400
Message-ID: <29079.1092598837@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.58.0408152044320.22644@tigger.tange.dk>
References: <Pine.LNX.4.58.0408151947250.22644@tigger.tange.dk>
	<28313.1092593619@sss.pgh.pa.us>
	<Pine.LNX.4.58.0408152044320.22644@tigger.tange.dk>

Ole Tange <postgresql.org@tange.dk> writes:
> Now I am curious: Why isn't DISTINCT implemented using a Hash aggregate?

Partly lack of round tuits, partly the fact that it is closely
intertwined with ORDER BY and I'm not sure what side-effects would
arise from separating them.  In particular, the DISTINCT ON special
case stops making any sense at all if it's not tied to a sort/uniq
underlying implementation.

			regards, tom lane



view thread (5+ messages)

Message-ID: <29079.1092598837@sss.pgh.pa.us>
Permalink:  ../29079.1092598837@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29079.1092598837@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, postgresql.org@tange.dk
  Subject: Re: Help interpreting explain analyze output
  In-Reply-To: <29079.1092598837@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