From: Tom Lane <tgl@sss.pgh.pa.us>
To: alexey@price.ru
Cc: pgsql-sql@postgresql.org
Subject: Re: can't get rid of unnesesary SORT step in explain plan for hash join
Date: Sat, 12 May 2001 21:53:56 -0400
Message-ID: <22028.989718836@sss.pgh.pa.us> (raw)
In-Reply-To: <01051118284600.06900@workshop.price.ru>
References: <01051118284600.06900@workshop.price.ru>
Alexey Nalbat <alexey@price.ru> writes:
> So, my question is: how can I get rid of this unnesesary "Sort" step
> in the execution plan for hash join?
You can't, because it's not unnecessary. Hash join doesn't promise
to produce its outputs in any particular order. But the Unique
filter needs to see its inputs in order by the fields being made
unique.
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, alexey@price.ru
Subject: Re: can't get rid of unnesesary SORT step in explain plan for hash join
In-Reply-To: <22028.989718836@sss.pgh.pa.us>
References: <01051118284600.06900@workshop.price.ru> <22028.989718836@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