RE: Add Nullif case for eval_const_expressions_mutator

Поиск
Список
Период
Сортировка
От Hou, Zhijie
Тема RE: Add Nullif case for eval_const_expressions_mutator
Дата
Msg-id 4982fac6fc62459bbcf560c6302ecd47@G08CNEXMBPEKD05.g08.fujitsu.local
обсуждение исходный текст
Ответ на RE: Add Nullif case for eval_const_expressions_mutator  ("Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>)
Ответы Re: Add Nullif case for eval_const_expressions_mutator  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
> > I think this patch should be about a tenth the size.  Try modeling it
> > on the T_SubscriptingRef-etc case, ie, use ece_generic_processing and
> > then ece_evaluate_expr to cover the generic cases.  OpExpr is common
> > enough to deserve specially optimized code, but NullIf isn't, so shorter
> is better.
>
> Thanks for the review.
>
> Attaching v2 patch , which followed the suggestion to use
> ece_generic_processing and ece_evaluate_expr to simplify the code.
>
> Please have a check.

Sorry, I found the code still be simplified better.
Attaching the new patch.

Best regards,
houzj




Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Logical Replication - behavior of ALTER PUBLICATION .. DROP TABLE and ALTER SUBSCRIPTION .. REFRESH PUBLICATION
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Fix a typo in SearchCatCache function comment