Hi! I've started to review this patch. My first question is whether we're able to handle different subscript types differently. For instance, one day we could handle jsonpath subscripts for jsonb. And for sure, jsonpath subscripts are expected to be handled differently from text subscripts. I see we can distinguish types during in prepare and validate functions. But it seems there is no type information in fetch and assign functions. Should we add something like this to the SubscriptingRefState for future usage?
Datum uppertypeoid[MAX_SUBSCRIPT_DEPTH]; Datum lowertypeoid[MAX_SUBSCRIPT_DEPTH]; ------ Regards, Alexander Korotkov