pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phillip Smith <phillip.smith@weatherbeeta.com.au>
To: 'Stuart McGraw' <smcg2297@frii.com>
To: pgsql-sql@postgresql.org
Subject: Re: slowness when subselect uses DISTINCT
Date: Fri, 20 Apr 2007 08:52:00 +1000
Message-ID: <001d01c782d5$5726bd30$9b0014ac@wbaus090> (raw)
In-Reply-To: <AKEFJAHAPDBEDKIICNJKCEOKCCAA.smcg2297@frii.com>

Let's start with one, and whatever is causing it in one, is perhaps in
theory, causing the rest :)

Cheers,
~p

-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of Stuart McGraw
Sent: Friday, 20 April 2007 00:20
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] slowness when subselect uses DISTINCT


Phillip Smith wrote:
> May I suggest you post an EXPLAIN ANALYZE to the group for the query
you're
> having problems with...?

I will do that but it has happened to me enough that it seems to be
a general pattern, not something specific to one of my queries,
so I thought some communal knowledge may exist.  But apparently
not.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match


*******************Confidentiality and Privilege Notice*******************

The material contained in this message is privileged and confidential to
the addressee.  If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.

Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments



view thread (4+ messages)

Message-ID: <001d01c782d5$5726bd30$9b0014ac@wbaus090>
Permalink:  ../001d01c782d5$5726bd30$9b0014ac@wbaus090/
Also on:    postgresql.org/message-id/001d01c782d5$5726bd30$9b0014ac@wbaus090

 · 

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-sql@postgresql.org
  Cc: phillip.smith@weatherbeeta.com.au, smcg2297@frii.com
  Subject: Re: slowness when subselect uses DISTINCT
  In-Reply-To: <001d01c782d5$5726bd30$9b0014ac@wbaus090>

* 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