继续 method for PostgresQL 9.1.1我尝试安装可供所有用户使用的扩展程序:
create schema extensions;
create extension pgcrypto WITH schema extensions;
grant usage on schema extensions to public;
grant execute on all functions in schema extensions to public;
然后我请求
select extensions.gen_salt('bf');
在非特权用户下,并收到错误消息:
ERROR: schema "extensions" does not exist
LINE 1: select extensions.gen_salt('bf');
甚至
create extension pgcrypto schema pg_catalog;
无济于事。这是PostgreSQL 9.6中的错误吗?