pgsql: Don't include CaseTestExpr in JsonValueExpr.formatted_expr

2023-07-21 Thread Amit Langote
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 it

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

2023-07-13 Thread Amit Langote
On Thu, Jul 13, 2023 at 5:12 PM Michael Paquier wrote: > > Hi Amit, > > On Thu, Jul 13, 2023 at 03:33:07AM +, Amit Langote wrote: > > Don't include CaseTestExpr in JsonValueExpr.formatted_expr > > > > A CaseTestExpr is currently being put into > > JsonValueExpr.formatted_expr as placeholder fo

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

2023-07-13 Thread Michael Paquier
Hi Amit, On Thu, Jul 13, 2023 at 03:33:07AM +, 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

pgsql: Don't include CaseTestExpr in JsonValueExpr.formatted_expr

2023-07-12 Thread Amit Langote
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 it