7

我正在尝试运行 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。

4

1 回答 1

14

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

创建扩展 pgcrypto;

对于 mac 用户,我建议在 brew 上阅读有关它的更多信息:

酿造信息 postgres

于 2012-06-20T13:24:14.667 回答