Re: PostgreSQL 9.2beta4 (& git HEAD) server crash on creating extension plpython3u

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Sachin Srivastava <sachin(dot)srivastava(at)enterprisedb(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PostgreSQL 9.2beta4 (& git HEAD) server crash on creating extension plpython3u
Date: 2012-08-22 14:26:07
Message-ID: 5034EBFF.2060606@wulczer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2012-08-22 14:49:01 Re: A caveat of partitioning tables in the document
Previous Message David Fetter 2012-08-22 14:11:50 Re: multi-master pgbench?