Re: plpython3u and virtualenv

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: 066ce286(at)free(dot)fr, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: plpython3u and virtualenv
Date: 2018-07-25 13:10:25
Message-ID: 0329dd53-774f-a578-75ca-5aee271b54d4@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 19.07.18 10:22, 066ce286(at)free(dot)fr wrote:
> Do you think there is a way to make a pg server using a specific python virtualenv ?

virtualenv relies on environment settings to make it use the Python
installation in certain directories. You could start the PostgreSQL
server inside the virtualenv. That's not going to change which
interpreter binary it's using, since that's in the shared library
belonging to the PostgreSQL installation. But it might make it use the
right Python module directories. Alternatively, you could just make the
environment variable settings manually. With a bit of experimentation
you can probably make it do useful things, but it won't match the
virtualenv experience directly.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message pavan95 2018-07-25 13:32:18 Re: Granting any privilege for a specific set of tables in postgres in a single shot!..
Previous Message Kouber Saparev 2018-07-25 11:41:47 Protected custom configuration option