gpt4 book ai didi

postgresql - Postgres 缺少 pgcrypt 能力?

转载 作者:行者123 更新时间:2023-11-29 11:26:32 25 4
gpt4 key购买 nike

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

关于postgresql - Postgres 缺少 pgcrypt 能力?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11112860/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com