pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@gmail.com>
To: c k <shreeseva.learning@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: postgresql server crash on windows 7 when using plpython
Date: Wed, 10 Aug 2011 07:04:44 -0700
Message-ID: <201108100704.44907.adrian.klaver@gmail.com> (raw)
In-Reply-To: <CAN2Y=uNbpzZ=z_KHBOwf_4qcOuZNp+PrPYMaF7qvQ_Wi7YOJLA@mail.gmail.com>
References: <CAN2Y=uMs3SwWwogKpazMPKFTbuJZngOhaDLxYg+XReJK=BzpPA@mail.gmail.com>
	<CANf5jyPA2Sq1vaHGk0VCT6yPGyiiHspuxFyK3eWYV+xsGR04TA@mail.gmail.com>
	<CAN2Y=uNbpzZ=z_KHBOwf_4qcOuZNp+PrPYMaF7qvQ_Wi7YOJLA@mail.gmail.com>

On Tuesday, August 09, 2011 10:13:17 pm c k wrote:
> Here is the actual function.
> create or replace function software.python_test() returns text as
> $body$
> import sys
> from uuid import getnode as get_mac
> mac = get_mac()
> return mac
> $body$
> language plpythonu volatile security definer;
> 
> When running the same code from python prompt, it run correctly without any
> error.

The above function runs correctly in Postgres 9.0.3 on my Linux machine. I would 
say Craigs  post about multiple versions of uuid causing the problem is the 
answer to your problem.


> 
> 
> Chaitanya Kulkarni
> 


-- 
Adrian Klaver
adrian.klaver@gmail.com



view thread (20+ messages)  latest in thread

Message-ID: <201108100704.44907.adrian.klaver@gmail.com>
Permalink:  ../201108100704.44907.adrian.klaver@gmail.com/
Also on:    postgresql.org/message-id/201108100704.44907.adrian.klaver@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: adrian.klaver@gmail.com, shreeseva.learning@gmail.com, pgsql-general@postgresql.org
  Subject: Re: postgresql server crash on windows 7 when using plpython
  In-Reply-To: <201108100704.44907.adrian.klaver@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox