COALESCE with single argument looks like identity function

Поиск
Список
Период
Сортировка
От Maksim Milyutin
Тема COALESCE with single argument looks like identity function
Дата
Msg-id 8e8573c3-1411-448d-877e-53258b7b2be0@tantorlabs.ru
обсуждение исходный текст
Ответы Re: COALESCE with single argument looks like identity function
Список pgsql-hackers
Hello everyone!


I've noticed that COALESCE function doesn't converge to argument 
expression if it is alone in argument list of COALESCE as part 
simplification routine for expressions in planner. This might suppress 
further useful transformations when non-strict ops are required from 
some expression like converging OUTER JOIN to INNER one with WHERE qual 
containing COALESCE over single column from inner side.

The patch of transformation in question for COALESCE is attached.


-- 
Best regard,
Maksim Milyutin

Вложения

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