Re: [PATCH] plpythonu datatype conversion improvements

From: Caleb Welton <cwelton(at)greenplum(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] plpythonu datatype conversion improvements
Date: 2009-05-27 21:25:58
Message-ID: C642FDF6.2132%cwelton@greenplum.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yes, in Python >= 2.4 there is the Decimal datatype.

However, unlike the other mappings employed by plpythonu, Decimal requires an import statement to be in scope.

-Caleb

On 5/27/09 2:07 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On Wednesday 27 May 2009 21:53:31 Caleb Welton wrote:
>> ... My own
>> feeling on the matter is that PyFloat is the wrong mapping for numeric, but
>> I didn't want to muddy this patch by changing that.

> Yeah, that one had me wondering for a while as well, but as you say it is
> better to address that separately.

That was making me itch as well, in my very cursory look at the patch.
Does Python have a saner mapping for it?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Guillaume Smet 2009-05-27 21:35:21 Re: Clean shutdown and warm standby
Previous Message Tom Lane 2009-05-27 21:25:16 Re: search_path vs extensions