加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – Postgres缺少pgcrypt能力?

发布时间:2020-12-13 18:06:53 所属栏目:百科 来源:网络整理
导读:我正在尝试运行 Java Jetty应用程序,我一直看到这个错误: Caused by: org.postgresql.util.PSQLException: ERROR: function crypt(character varying,character) does not exist| Hint: No function matches the given name and argument types. You might
我正在尝试运行 Java Jetty应用程序,我一直看到这个错误:
Caused by: 
org.postgresql.util.PSQLException: ERROR: function crypt(character varying,character) does not exist|  Hint: No function matches the given name and argument types. You might need to add explicit type casts.|  Where: PL/pgSQL function

有谁认识到这个或如何解决这个问题?我认为pgcrypt是在Postgres 9.1.x中预先捆绑的吗?

我目前运行Mac OSX Lion 10.7并使用brew“brew install postgres”安装Postgres.

我只需要启用pgcrypto;
刚刚从CLI运行:

CREATE EXTENSION pgcrypto;

对于mac用户,我建议在brew上阅读更多相关内容:

brew info postgres

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读