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

From Tom Lane
Subject Re: [PATCH] plpythonu datatype conversion improvements
Date
Msg-id 965.1250521932@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] plpythonu datatype conversion improvements  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [PATCH] plpythonu datatype conversion improvements  (Caleb Welton <cwelton@greenplum.com>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> 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.

There's been some discussion about functional improvements like
translating arrays to arrays.  I don't know what we'd have to do
to manage that, but possibly some API extensions to the array code
would make it feasible without violating abstractions.  The present
patch, however, doesn't appear to have any reason to live other than an
undocumented amount of performance improvement.  My feeling about that
is if you're concerned about micro-performance, why are you coding in
python to begin with?  It isn't the best choice out there.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] plpythonu datatype conversion improvements
Next
From: Tom Lane
Date:
Subject: Re: CommitFest 2009-07: Remaining Patches Moved To CommitFest 2009-09