If you specify a BYTE or VARBYTE value for a function argument for which that type is incompatible, you get this error message:
function_name: The column 'column_name' specified in argument_name must be a member of one of the following SQL type groups: [INTEGER, STRING]. Found: bytea