PostgreSQL: how to install plpythonu extension

前端 未结 3 1271
走了就别回头了
走了就别回头了 2020-12-31 03:22

I\'m running PostgreSQL 9.3.1 on Ubuntu 12.04.4. I\'d like to use the plpython language extension but I get an error when I try to use it I get:

ERROR: langua

3条回答
  •  无人及你
    2020-12-31 03:42

    I'm running Raspbian 10 (buster) / Linux raspberrypi 4.19.97-v7+ #1294 and ran the following commands to install PL/Python 3 on PostgreSQL 11.7.

    1. Identify which versions are available for install:
    pi@raspberrypi:~/$ sudo apt-cache search ".*plpython3.*"
    postgresql-plpython3-11 - PL/Python 3 procedural language for PostgreSQL 11
    
    1. sudo apt-get install postgresql-contrib postgresql-plpython3-11

    2. sudo su - postgres

    3. psql

    4. CREATE EXTENSION plpython3u;

    5. Verify with command:

    select * from pg_language;
    

提交回复
热议问题