RE: Add Nullif case for eval_const_expressions_mutator

Поиск
Список
Период
Сортировка
От houzj.fnst@fujitsu.com
Тема RE: Add Nullif case for eval_const_expressions_mutator
Дата
Msg-id OS0PR01MB571671733EA40F95FF45169D94639@OS0PR01MB5716.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Add Nullif case for eval_const_expressions_mutator  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add Nullif case for eval_const_expressions_mutator
Список pgsql-hackers
> +                if (!has_nonconst_input)
> +                    return ece_evaluate_expr(expr);
>
> That's not okay without a further check to see if the comparison function used
> by the node is immutable.  Compare ScalarArrayOpExpr, for instance.

Thanks for pointing it out.
Attaching new patch with this change.

Best regards,
houzj

Вложения

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

Предыдущее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: [HACKERS] logical decoding of two-phase transactions
Следующее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: fix typo in reorderbuffer.c