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

From Peter Eisentraut
Subject Re: [PATCH] plpythonu datatype conversion improvements
Date
Msg-id 200905271311.37085.peter_e@gmx.net
Whole thread Raw
In response to [PATCH] plpythonu datatype conversion improvements  (Caleb Welton <cwelton@greenplum.com>)
Responses Re: [PATCH] plpythonu datatype conversion improvements  (Caleb Welton <cwelton@greenplum.com>)
List pgsql-hackers
On Wednesday 27 May 2009 02:07:33 Caleb Welton wrote:
> Patch for plpythonu
>
> Primary motivation of the attached patch is to support handling bytea
> conversion allowing for embedded nulls, which in turn allows for supporting
> the marshal module.
>
> Secondary motivation is slightly improved performance for conversion
> routines of basic datatypes that have simple mappings between
> postgres/python.
>
> Primary design is to change the conversion routines from being based on
> cstrings to datums, eg: PLyBool_FromString(const char *)  =>
> PLyBool_FromBool(PLyDatumToOb, Datum);

Makes sense; please add it to the next commit fest.

Are there any compatibility implications, that is, do any of the conversions 
work differently from before (except when they were broken before, as in the 
case of bytea)?


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Synchronous replication: Admin command for replication_timeout_action
Next
From: "Markus Wanner"
Date:
Subject: Re: PostgreSQL Developer meeting minutes up