Thread: python install location
How does postgres determine which install of python to use in conjunction with plpythonu? We have a CentOS6 machine withpython 2.6 and 2.7 installed on it. The 2.6 version is in the canonical location and the version which gets used whenusing the plpython extension. Is there a way, in postgres, short of rebuilding that we can tell postgres which install of python to use when invoking plpython? thanks alan
On 3/6/19 4:12 PM, Alan Nilsson wrote: > How does postgres determine which install of python to use in conjunction with plpythonu? We have a CentOS6 machine withpython 2.6 and 2.7 installed on it. The 2.6 version is in the canonical location and the version which gets used whenusing the plpython extension. > > Is there a way, in postgres, short of rebuilding that we can tell postgres which install of python to use when invokingplpython? https://www.postgresql.org/docs/11/plpython-python23.html > > thanks > alan > > > -- Adrian Klaver adrian.klaver@aklaver.com
On 2019-03-07 01:12, Alan Nilsson wrote: > How does postgres determine which install of python to use in conjunction with plpythonu? It looks for a "python" program and then uses that to find the location of the required library. > Is there a way, in postgres, short of rebuilding that we can tell postgres which install of python to use when invokingplpython? No, that it determined at build time. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services