From: Laurent Martelli <laurent@bearteam.org>
To: pgsql-performance@postgresql.org
Subject: Join on incompatible types
Date: Tue, 18 Nov 2003 11:01:48 +0100
Message-ID: <87k75ym1v7.fsf@news.nerim.net> (raw)
In-Reply-To: <Pine.LNX.4.33.0310291446430.22074-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0310291446430.22074-100000@css120.ihs.com>
>>>>> "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 ?
--
Laurent Martelli
laurent@aopsys.com Java Aspect Components
http://www.aopsys.com/http://jac.aopsys.com
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: laurent@bearteam.org
Subject: Re: Join on incompatible types
In-Reply-To: <87k75ym1v7.fsf@news.nerim.net>
* 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