Re: [PATCH] plpythonu datatype conversion improvements - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCH] plpythonu datatype conversion improvements
Date
Msg-id 4A897162.5020807@dunslane.net
Whole thread Raw
In response to Re: [PATCH] plpythonu datatype conversion improvements  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] plpythonu datatype conversion improvements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] plpythonu datatype conversion improvements
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] plpythonu datatype conversion improvements