What we've basically got here is a complaint that the default textual-representation-based method for transmitting PL function parameters and results is awkward and inefficient for bytea. So the first question is whether this is really localized to only bytea, and if not which other types have got similar issues. (Even if you make the case that no other scalar types need help, what of bytea[] and composite types containing bytea or bytea[]?)
It can be solution for known isues. Current textual representation is more ugly hack than everythink else. Regards Pavel Stehule ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster