我想在 postgresql 上安装 plpython 以获得 python 触发器
当我恢复我的数据库(我的数据库有一些 python 触发器)时,出现此错误(错误消息太大,所以我粘贴它的第一行):
C:/Program Files/PostgreSQL/9.0/bin/pg_restore.exe
--host localhost
--port 5432
--username "postgres"
--dbname "mfa"
--verbose
"%HOMEPATH%/Desktop/EhSAA/MFA/db_schema/mydb.backup"
pg_restore: connecting to database for restore
pg_restore: creating SCHEMA public
pg_restore: creating COMMENT SCHEMA public
pg_restore: creating PROCEDURAL LANGUAGE plpgsql
pg_restore: creating PROCEDURAL LANGUAGE plpythonu
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 315; 2612 16595
PROCEDURAL LANGUAGE plpythonu postgres
pg_restore: [archiver (db)] could not execute query:
ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plpython.dll":
The specified module could not be found.
命令是:
CREATE OR REPLACE PROCEDURAL LANGUAGE plpythonu;