pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@nullmx.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Rewriting DISTINCT and losing performance
Date: Mon, 21 May 2007 05:14:14 -0400
Message-ID: <465162E6.4030205@agliodbs.com> (raw)
In-Reply-To: <200705202228.32129.pgsql-performance@nullmx.com>
References: <200705202228.32129.pgsql-performance@nullmx.com>

Chuck,

> explain analyze
> SELECT   country_id, country_name
> FROM     geo.country
> WHERE country_id IN
>  (select country_id FROM geo.city)
> ;
> 
> -- won't complete in a reasonable amount of time.

Can we see the plan?

--Josh




view thread (8+ messages)  latest in thread

Message-ID: <465162E6.4030205@agliodbs.com>
Permalink:  ../465162E6.4030205@agliodbs.com/
Also on:    postgresql.org/message-id/465162E6.4030205@agliodbs.com

 · 

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: josh@agliodbs.com, pgsql-performance@nullmx.com
  Subject: Re: Rewriting DISTINCT and losing performance
  In-Reply-To: <465162E6.4030205@agliodbs.com>

* 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