Tom Lane wrote:
>
> For the record, I think this entire patch is a bad idea. PLs should not
> be so much in bed with the internal representation of datatypes.
>
I thought there was some suggestion in the past that we should move some
in that direction. The discussion context was Theo Schlossnagle's
complaint about the overhead of passing bytea to and from PLPerl,
although that might be ameliorated by the hex gadget. The other major
case that would benefit would be passing Array values as the PL's native
array type, and Composite values as the PL's associative array type.
That would save PL users a lot of highly error-prone coding
deconstructing the text representation of such objects.
cheers
andrew