Re: unnesesary sorting after Merge Full Join

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: unnesesary sorting after Merge Full Join
Дата
Msg-id 1204040950.4252.350.camel@ebony.site
обсуждение исходный текст
Ответ на Re: unnesesary sorting after Merge Full Join  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: unnesesary sorting after Merge Full Join
Список pgsql-general
On Tue, 2008-02-26 at 10:34 -0500, Tom Lane wrote:
> > and add COALESCE(id2,id1) to it as well I think.
>
> No, because those two expressions are not equivalent.  (Hmm ... squint
> ... but full merge join is pretty much symmetric, so it's not clear
> why it should matter which side is left or right.  Maybe COALESCE
> isn't
> exactly the right concept with which to describe the merged variable?)

It is, in this case only, since when id2 is not null id2 == id1.

So in this case its OK to express a symmetric relationship as a left
handed function.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: unnesesary sorting after Merge Full Join
Следующее
От: Maciej Sieczka
Дата:
Сообщение: Re: how to auto GRANT custom ACL on a new table?