Re: pgsql: Don't include CaseTestExpr in JsonValueExpr.formatted_expr

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Don't include CaseTestExpr in JsonValueExpr.formatted_expr
Дата
Msg-id ZK+xy0D4VagfDOCt@paquier.xyz
обсуждение исходный текст
Ответ на pgsql: Don't include CaseTestExpr in JsonValueExpr.formatted_expr  (Amit Langote <amitlan@postgresql.org>)
Ответы Re: pgsql: Don't include CaseTestExpr in JsonValueExpr.formatted_expr  (Amit Langote <amitlangote09@gmail.com>)
Список pgsql-committers
Hi Amit,

On Thu, Jul 13, 2023 at 03:33:07AM +0000, Amit Langote wrote:
> Don't include CaseTestExpr in JsonValueExpr.formatted_expr
>
> A CaseTestExpr is currently being put into
> JsonValueExpr.formatted_expr as placeholder for the result of
> evaluating JsonValueExpr.raw_expr, which in turn is evaluated
> separately.  Though, there's no need for this indirection if
> raw_expr itself can be embedded into formatted_expr and evaluated
> as part of evaluating the latter, especially as there is no
> special reason to evaluate it separately.  So this commit makes it
> so.  As a result, JsonValueExpr.raw_expr no longer needs to be
> evaluated in ExecInterpExpr(), eval_const_exprs_mutator() etc. and
> is now only used for displaying the original "unformatted"
> expression in ruleutils.c.

koel is unhappy after this commit:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=koel&dt=2023-07-13%2006%3A49%3A03
This code is not indented properly.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove duplicated assignment of LLVMJitHandle->lljit
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix untranslatable log message assembly