Function calls for value compare - right methods called?
Created by: Piiit
I fetch opcodes
from sub-query sortGroupClauses
, maybe that's not the right way.
On 8/12/15 5:08 AM, Peter Moser wrote:
> state->ltFunctionInfo = (FmgrInfo *) palloc(sizeof(FmgrInfo));
> ltOperatorId = get_opcode(node->ltOperator);
> fmgr_info(ltOperatorId, state->ltFunctionInfo);
I think fmgr_info takes a function ID, not an operator ID.
All of this would need to be evaluated in the context of a complete
patch. It's very hard to determine whether anything like this is
correct otherwise.
HINT: Search for fmgr_info
to see what others did!