Re: PostgreSQL 9.2beta4 (& git HEAD) server crash on creating extension plpython3u - Mailing list pgsql-hackers

From Jan Urbański
Subject Re: PostgreSQL 9.2beta4 (& git HEAD) server crash on creating extension plpython3u
Date
Msg-id 5034EBFF.2060606@wulczer.org
Whole thread Raw
In response to Re: PostgreSQL 9.2beta4 (& git HEAD) server crash on creating extension plpython3u  (Sachin Srivastava <sachin.srivastava@enterprisedb.com>)
List pgsql-hackers
On 22/08/12 13:28, Sachin Srivastava wrote:
> Yes, It worked for me also..
> So will this be a workaround? Or do we intend to use something like
> Py_SetPythonHome() before calling Py_Initialize()/

I think the best we can do is to document that for some installations 
you might need to set PYTHONHOME. I don't think we can figure it out at 
runtime (we could then use setenv to fix it). This is similar to having 
to set PYTHONPATH if you want to import code installed in virtualenvs or 
other nonstandard locations.

I'm leaning towards just documenting, mucking around with environment 
variables from inside of Postgres' shared libraries seems like a recipe 
for disaster.

Cheers,
Jan



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: multi-master pgbench?
Next
From: Fujii Masao
Date:
Subject: Re: A caveat of partitioning tables in the document