[英]PL/Python in PostgreSQL
I was writing a PL/Python function for PostgreSQl, with Python 2.7 and Python 3.5 already installed on Linux. 我正在为PostgreSQl编写PL / Python函数,而Linux上已经安装了Python 2.7和Python 3.5。 When I was trying to create extension plpythonu, I got an error, then I fixed executing in terminal the command
$ sudo apt-get install postgresql-contrib-9.3 postgresql-plpython-9.3
. 当我尝试创建扩展名plpythonu时,出现错误,然后我修复了在终端执行命令
$ sudo apt-get install postgresql-contrib-9.3 postgresql-plpython-9.3
。 I understand that this is some other package. 我了解这是其他软件包。
If I will not have Python 2.7/3.5 installed, and I will install the plpython package, will the user defined function still work? 如果我没有安装Python 2.7 / 3.5,而是安装了plpython软件包,那么用户定义的函数是否仍然有效? Is some how the PL/Python depending on Python?
PL / Python如何依赖于Python?
是的,它将,该软件包独立于标准python安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.