Re: What does "merge-joinable join conditions" mean ????

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What does "merge-joinable join conditions" mean ????
Дата
Msg-id 17050.1137362308@sss.pgh.pa.us
обсуждение исходный текст
Ответ на What does "merge-joinable join conditions" mean ????  ("Dean Gibson (DB Administrator)" <postgresql4@ultimeth.com>)
Список pgsql-sql
"Dean Gibson (DB Administrator)" <postgresql4@ultimeth.com> writes:
> I have a FULL JOIN between two simple tables, and am getting the message 
> " Query failed: ERROR:  FULL JOIN is only supported with merge-joinable 
> join conditions"

> I'd be glad to fix this in my query if I knew what the #@!! it meant.  

The join condition(s) of a FULL JOIN have to be mergejoinable, which
basically means an equality relation between sortable (btree-indexable)
data types.  You can see exactly which operators are mergejoinable with
a query like

select oid::regoperator from pg_operator where oprlsortop != 0;
        regards, tom lane


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: What does "merge-joinable join conditions" mean ????
Следующее
От: Tom Lane
Дата:
Сообщение: Re: What does "merge-joinable join conditions" mean ????