[Description]
1.failed to determine actual type of RECORDfunction returning record called in context that cannot accept type record
2.get the tupdesc from the result set info - it must be a record typebecause we already checked that arg1 is a record type, or we're in ato_record function which returns a setof record.
[System Processing]
Processing will be aborted.
[Action]
To investigate the cause of the occurrence from the message, and remove cause.