0

我试图通过删除然后创建带有附加参数的 plpgsql 语言来设置 plpgsql 的验证器。然而,Postgres 似乎没有删除语言的选项......

db=# DELETE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
db-# HANDLER plpgsql_call_handler
db-# VALIDATOR plpgsql_validator;
ERROR:  syntax error at or near "TRUSTED"
LINE 1: DELETE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
4

1 回答 1

1

解决方案是按如下方式创建或替换...

db=# CREATE OR REPLACE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
db-# HANDLER plpgsql_call_handler
db-# VALIDATOR plpgsql_validator;
NOTICE:  using pg_pltemplate information instead of CREATE LANGUAGE parameters
CREATE LANGUAGE
于 2013-03-20T19:17:13.963 回答