From: Adrian Klaver <adrian.klaver@gmail.com>
To: pgsql-general@postgresql.org
Cc: c k <shreeseva.learning@gmail.com>
Cc: sim@compulab.co.il
Cc: mgainty@hotmail.com
Cc: Karsten.Hilbert@gmx.net
Subject: Re: plpython module import errors
Date: Thu, 28 Apr 2011 07:29:52 -0700
Message-ID: <201104280729.53015.adrian.klaver@gmail.com> (raw)
In-Reply-To: <BANLkTin0hZ-Q8S7Z1ZVo-XMJSAoxhiccRA@mail.gmail.com>
References: <BANLkTikG=d4n2tvVH0+aBTyHJtwC=fgFqw@mail.gmail.com>
<20110428133054.GI3783@hermes.hilbert.loc>
<BANLkTin0hZ-Q8S7Z1ZVo-XMJSAoxhiccRA@mail.gmail.com>
On Thursday, April 28, 2011 7:11:50 am c k wrote:
> Yes, there are three version (now). I am aware of only 2.7 installed
> by default in /usr/lib directory and 3.2 which I have installed
> externally. But the function given above shows version 2.6.4.
> Now the question is how to change the version postresql is calling for
> function execution?
> I have also complied the postgresql source using python option, but
> nothing happens. Is there is variable or like where we can set the
> python deirectory and version postresql have to use?
> Because as per manual, after installing 3.2, I have complied source,
> but still it does not support to python 3.2!
It can only compile against one and by default that will be the 'system '
version. To determine what that is , at the system command line enter:
python -V
If you want to compile against 3.2 you will have to tell Postgres that. See here
for more detail:
http://www.postgresql.org/docs/9.0/interactive/install-procedure.html
PYTHON
Full path to the Python interpreter. This will be used to determine the
dependencies for building PL/Python. Also, whether Python 2 or 3 is specified
here (or otherwise implicitly chosen) determines which variant of the PL/Python
language becomes available. See Section 42.1 for more information.
> Kindly give the details.
> Thanks and regards,
>
> C P Kulkarni
>
--
Adrian Klaver
adrian.klaver@gmail.com
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, pgsql-general@postgresql.org, shreeseva.learning@gmail.com, sim@compulab.co.il, mgainty@hotmail.com, Karsten.Hilbert@gmx.net
Subject: Re: plpython module import errors
In-Reply-To: <201104280729.53015.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