Re: merge-join for domain with underlying type text

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: merge-join for domain with underlying type text
Дата
Msg-id 10881.1052623189@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: merge-join for domain with underlying type text  (Randall Lucas <rlucas@tercent.net>)
Список pgsql-sql
Randall Lucas <rlucas@tercent.net> writes:
> Hackers, why is this?  It seems to me that since everything else (or 
> everything I've run into so far, up to the full outer joins) is 
> implicitly the same for a simple domain and its underlying base type, 
> that it would make sense if this, too, Just Worked.

It does Just Work ... in CVS tip.  I can't make it magically work in
7.3 --- at least not without back-patching a lot of stuff that hasn't
been through beta-testing yet.

The problem is that mergejoin in existing releases will only work on
plain "Var = Var" clauses.  Your domain case doesn't look like that
because of the runtime cast operators.
        regards, tom lane



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

Предыдущее
От: Randall Lucas
Дата:
Сообщение: Re: merge-join for domain with underlying type text
Следующее
От: Matthew Horoschun
Дата:
Сообщение: Knowing when it is safe to call currval()