我已经在
postgresql服务器上安装了PL /
Python:
netherlands=# CREATE PROCEDURAL LANGUAGE plpythonu; CREATE LANGUAGE
现在我需要授予权限,以便我可以将其用作普通用户:
netherlands=# GRANT ALL ON LANGUAGE plpythonu TO adam; ERROR: language "plpythonu" is not trusted HINT: Only superusers can use untrusted languages.
我知道python不是一种“可信赖的”语言,但我愿意把握机会.有没有办法说服Postgresql让我以普通用户身份运行Python存储过程?
UPDATE pg_language SET lanpltrusted = true WHERE lanname = 'plpythonu';