pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
To: Laurent Martelli <laurent@bearteam.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Join on incompatible types
Date: Tue, 18 Nov 2003 16:15:41 +0530
Message-ID: <3FB9F855.7010905@myrealbox.com> (raw)
In-Reply-To: <87k75ym1v7.fsf@news.nerim.net>
References: <Pine.LNX.4.33.0310291446430.22074-100000@css120.ihs.com>
	<87k75ym1v7.fsf@news.nerim.net>

Laurent Martelli wrote:

>>>>>>"scott" == scott marlowe <scott.marlowe@ihs.com> writes:
> 
> 
> [...]
> 
>   scott> Note here:
> 
>   scott> Merge Join (cost=1788.68..4735.71 rows=1 width=85) (actual
>   scott> time=597.540..1340.526 rows=20153 loops=1) Merge Cond:
>   scott> ("outer".id = "inner".id)
> 
>   scott> This estimate is WAY off.  Are both of those fields indexed
>   scott> and analyzed?  Have you tried upping the statistics target on
>   scott> those two fields?  I assume they are compatible types.
> 
> Should I understand that a join on incompatible types (such as integer
> and varchar) may lead to bad performances ?

Conversely, you should enforce strict type compatibility in comparisons for 
getting any good plans..:-)

  Shridhar




view thread (8+ messages)  latest in thread

Message-ID: <3FB9F855.7010905@myrealbox.com>
Permalink:  ../3FB9F855.7010905@myrealbox.com/
Also on:    postgresql.org/message-id/3FB9F855.7010905@myrealbox.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: shridhar_daithankar@myrealbox.com, laurent@bearteam.org
  Subject: Re: Join on incompatible types
  In-Reply-To: <3FB9F855.7010905@myrealbox.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