Skip site navigation (1) Skip section navigation (2)

Re: plpython issue with Win64 (PG 9.2)

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Asif Naeem <asif(dot)naeem(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: plpython issue with Win64 (PG 9.2)
Date: 2012-06-27 11:57:06
Message-ID: 4FEAF512.2050204@wulczer.org (view raw or flat)
Thread:
Lists: pgsql-hackers
On 27/06/12 11:51, Asif Naeem wrote:
> Hi,
>
> On Windows 7 64bit, plpython is causing server crash with the following
> test case i.e.
>
> CREATE PROCEDURAL LANGUAGE 'plpython3u';
>> CREATE OR REPLACE FUNCTION pymax (a integer, b integer)
>>    RETURNS integer
>> AS $$
>>    if a>  b:
>>      return a
>>    return b
>> $$ LANGUAGE plpython3u;
>> SELECT pymax(1, 2);

>
> I think primary reason that trigger this issue is when Function
> PLyUnicode_Bytes() calls "PyUnicode_AsEncodedString( ,WIN1252 /*Server
> encoding*/, ) " it fails with null. I built latest pg 9.2 source code with
> python 3.2.2.3 by using Visual Studio 2010. Thanks.

I'll try to reproduce this on Linux, which should be possible given the 
results of your investigation.

Cheers,
Jan

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2012-06-27 12:13:22
Subject: Re: pg_terminate_backend for same-role
Previous:From: Magnus HaganderDate: 2012-06-27 11:41:55
Subject: Re: Posix Shared Mem patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group