Join on incompatible types

Поиск
Список
Период
Сортировка
От Laurent Martelli
Тема Join on incompatible types
Дата
Msg-id 87k75ym1v7.fsf@news.nerim.net
обсуждение исходный текст
Ответ на Re: PostgreSQL 7.4beta5 vs MySQL 4.0.16 with  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: Join on incompatible types  (Shridhar Daithankar <shridhar_daithankar@myrealbox.com>)
Список pgsql-performance
>>>>> "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


В списке pgsql-performance по дате отправления:

Предыдущее
От: Ryszard Lach
Дата:
Сообщение: Re: duration logging setting in 7.4
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Join on incompatible types