> I've tried to compile this patch with current state of master (commit
> 51c3e9fade76c12) and found out that, when configured with --enable-cassert,
> it doesn't pass make check.
Thanks for the feedback. Yes, unexpectedly for me, `ExecEvalExpr` can return
expanded `jbvArray` and `jbvObject` instead `jbvBinary` in both cases. It's
interesting, that this doesn't break anything, but obviously violates
the `pushJsonbValueScalar` semantics. I don't think `ExecEvalExpr` should be
changed for jsonb, we can handle this situation in `pushJsonbValue` instead. I've
attached a new version of patch with this modification.