pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Phil Endecott <spam_from_postgresql_lists@chezphil.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimisation of INTERSECT expressions
Date: Tue, 23 Mar 2004 11:05:00 -0600
Message-ID: <20040323170500.GA25181@wolff.to> (raw)
In-Reply-To: <20040323162823.B4131D1EC40@svr1.postgresql.org>
References: <20040323162823.B4131D1EC40@svr1.postgresql.org>

On Tue, Mar 23, 2004 at 11:21:39 -0500,
  Phil Endecott <spam_from_postgresql_lists@chezphil.org> wrote:
>  Does anyone have any suggestions about how to do this?  I'd like a nice
> general technique that works for all possible subqueries, as my current
> composition with INTERSECT does.

One adjustment you might make is using INTERSECT ALL if you know there
can't be duplicates. Then time won't be wasted trying to remove duplicates.



view thread (8+ messages)  latest in thread

Message-ID: <20040323170500.GA25181@wolff.to>
Permalink:  ../20040323170500.GA25181@wolff.to/
Also on:    postgresql.org/message-id/20040323170500.GA25181@wolff.to

 · 

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: bruno@wolff.to, spam_from_postgresql_lists@chezphil.org
  Subject: Re: Optimisation of INTERSECT expressions
  In-Reply-To: <20040323170500.GA25181@wolff.to>

* 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